syscall.sh / ppc / clone
clone
create a child process
sys_clone(unsigned long clone_flags, unsigned long newsp, int *parent_tidptr, unsigned long tls, int *child_tidptr)
| number | 120 (0x78) |
|---|---|
| abi | nospu |
| entry point | sys_clone |
| since | Linux 5.0 |
| man page | clone(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r0 | 120, the syscall number |
r3 | unsigned long clone_flags |
r4 | unsigned long newsp |
r5 | int *parent_tidptr |
r6 | unsigned long tls |
r7 | int *child_tidptr |
r3 | the return value |
Then run sc to enter the kernel.
Same syscall on other architectures
- x64 56
- x86 120
- arm64 220
- arm 120
- riscv64 220
- x32 1073741880
- loongarch64 220
- ppc64 120
- s390x 120
- mips64 5055
- mipsn32 6055
- mipso32 4120
- alpha 312
- arc 220
- csky 220
- hexagon 220
- m68k 120
- microblaze 120
- nios2 220
- openrisc 220
- parisc 120
- sh 120
- sparc 217
- sparc64 217
- xtensa 116
Get this as JSON: https://api.syscall.sh/v2/syscalls/ppc/clone