syscall.sh / riscv64 / clone

clone

create a child process

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

Registers

registervalue
a7220, the syscall number
a0unsigned long clone_flags
a1unsigned long newsp
a2int *parent_tidptr
a3unsigned long tls
a4int *child_tidptr
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

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