syscall.sh / xtensa / sethostname

sethostname

get/set hostname

sys_sethostname(char *name, int len)
number198 (0xc6)
abicommon
entry pointsys_sethostname
sinceLinux 5.0
man pagesethostname(2)
sourceelixir.bootlin.com

Registers

registervalue
a2198, the syscall number
a6char *name
a3int len
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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