syscall.sh / ppc64 / close
close
close a file descriptor
sys_close(unsigned int fd)
| number | 6 (0x6) |
|---|---|
| abi | common |
| entry point | sys_close |
| since | Linux 5.0 |
| man page | close(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r0 | 6, the syscall number |
r3 | unsigned int fd |
r3 | the return value |
Then run sc to enter the kernel.
Same syscall on other architectures
- x64 3
- x86 6
- arm64 57
- arm 6
- riscv64 57
- x32 1073741827
- loongarch64 57
- ppc 6
- s390x 6
- mips64 5003
- mipsn32 6003
- mipso32 4006
- alpha 6
- arc 57
- csky 57
- hexagon 57
- m68k 6
- microblaze 6
- nios2 57
- openrisc 57
- parisc 6
- sh 6
- sparc 6
- sparc64 6
- xtensa 9
Get this as JSON: https://api.syscall.sh/v2/syscalls/ppc64/close