syscall.sh / arm / sethostname

sethostname

get/set hostname

sys_sethostname(char *name, int len)
number74 (0x4a)
abicommon
entry pointsys_sethostname
sinceLinux 4.10
man pagesethostname(2)
sourceelixir.bootlin.com

Registers

registervalue
r774, the syscall number
r0char *name
r1int len
r0the 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/arm/sethostname