syscall.sh / x32 / sethostname

sethostname

get/set hostname

sys_sethostname(char *name, int len)
number1073741994 (0x400000aa)
abicommon
entry pointsys_sethostname
sinceLinux 3.4
man pagesethostname(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073741994, the syscall number
rdichar *name
rsiint len
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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