syscall.sh / mips64 / sethostname
sethostname
get/set hostname
sys_sethostname(char *name, int len)
| number | 5165 (0x142d) |
|---|---|
| abi | n64 |
| entry point | sys_sethostname |
| since | Linux 5.0 |
| man page | sethostname(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 5165, the syscall number |
a0 | char *name |
a1 | int len |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 170
- x86 74
- arm64 161
- arm 74
- riscv64 161
- x32 1073741994
- loongarch64 161
- ppc64 74
- ppc 74
- s390x 74
- mipsn32 6165
- mipso32 4074
- alpha 88
- arc 161
- csky 161
- hexagon 161
- m68k 74
- microblaze 74
- nios2 161
- openrisc 161
- parisc 74
- sh 74
- sparc 88
- sparc64 88
- xtensa 198
Get this as JSON: https://api.syscall.sh/v2/syscalls/mips64/sethostname