syscall.sh / openrisc / sethostname

sethostname

get/set hostname

sys_sethostname(char *name, int len)
number161 (0xa1)
abicommon
entry pointsys_sethostname
sinceLinux 3.7
man pagesethostname(2)
sourceelixir.bootlin.com

Registers

registervalue
r11161, the syscall number
r3char *name
r4int len
r11the return value

Then run l.sys 1 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/openrisc/sethostname