syscall.sh / sh / clone

clone

create a child process

sys_clone(unsigned long clone_flags, unsigned long newsp, int *parent_tidptr, int *child_tidptr, unsigned long tls)
number120 (0x78)
abicommon
entry pointsys_clone
sinceLinux 5.0
man pageclone(2)
sourceelixir.bootlin.com

Registers

registervalue
r3120, the syscall number
r4unsigned long clone_flags
r5unsigned long newsp
r6int *parent_tidptr
r7int *child_tidptr
r0unsigned long tls
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/clone