syscall.sh / arm64 / 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
x8161, the syscall number
x0char *name
x1int len
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

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