syscall.sh / s390x / setsid

setsid

creates a session and sets the process group ID

sys_setsid(void)
number66 (0x42)
abicommon
entry pointsys_setsid
sinceLinux 4.16
man pagesetsid(2)
sourceelixir.bootlin.com

Registers

registervalue
r166, 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/setsid