syscall.sh / loongarch64 / clone

clone

create a child process

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

Registers

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

Then run syscall 0 to enter the kernel.

Same syscall on other architectures

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