syscall.sh / ppc64 / sethostname

sethostname

get/set hostname

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

Registers

registervalue
r074, the syscall number
r3char *name
r4int len
r3the return value

Then run sc to enter the kernel.

Same syscall on other architectures

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