syscall.sh / sparc / sethostname

sethostname

get/set hostname

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

Registers

registervalue
g188, the syscall number
o0char *name
o1int len
o0the return value

Then run t 0x10 to enter the kernel.

Same syscall on other architectures

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