syscall.sh / ppc64 / shutdown
shutdown
shut down part of a full-duplex connection
sys_shutdown(int fd, int how)
| number | 338 (0x152) |
|---|---|
| abi | common |
| entry point | sys_shutdown |
| since | Linux 5.0 |
| man page | shutdown(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r0 | 338, the syscall number |
r3 | int fd |
r4 | int how |
r3 | the return value |
Then run sc to enter the kernel.
Same syscall on other architectures
- x64 48
- x86 373
- arm64 210
- arm 293
- riscv64 210
- x32 1073741872
- loongarch64 210
- ppc 338
- s390x 373
- mips64 5047
- mipsn32 6047
- mipso32 4182
- alpha 134
- arc 210
- csky 210
- hexagon 210
- m68k 370
- microblaze 359
- nios2 210
- openrisc 210
- parisc 117
- sh 352
- sparc 134
- sparc64 134
- xtensa 99
Get this as JSON: https://api.syscall.sh/v2/syscalls/ppc64/shutdown