syscall.sh / riscv64 / getppid
getppid
get process identification
sys_getppid(void)
| number | 173 (0xad) |
|---|---|
| abi | common |
| entry point | sys_getppid |
| since | Linux 4.15 |
| man page | getppid(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 173, the syscall number |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 110
- x86 64
- arm64 173
- arm 64
- x32 1073741934
- loongarch64 173
- ppc64 64
- ppc 64
- s390x 64
- mips64 5108
- mipsn32 6108
- mipso32 4064
- alpha 532
- arc 173
- csky 173
- hexagon 173
- m68k 64
- microblaze 64
- nios2 173
- openrisc 173
- parisc 64
- sh 64
- sparc 197
- sparc64 197
- xtensa 150
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/getppid