syscall.sh / x64 / clone

clone

create a child process

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

Registers

registervalue
rax56, the syscall number
rdiunsigned long clone_flags
rsiunsigned long newsp
rdxint *parent_tidptr
r10int *child_tidptr
r8unsigned long tls
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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