syscall.sh / s390x / fork

fork

create a child process

sys_fork(void)
number2 (0x2)
abicommon
entry pointsys_fork
sinceLinux 4.16
man pagefork(2)
sourceelixir.bootlin.com

Registers

registervalue
r12, the syscall number
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/fork