syscall.sh / s390x / clone

clone

create a child process

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

Registers

registervalue
r1120, the syscall number
r2unsigned long newsp
r3unsigned long clone_flags
r4int *parent_tidptr
r5int *child_tidptr
r6unsigned long tls
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

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