syscall.sh / sh / setsid

setsid

creates a session and sets the process group ID

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

Registers

registervalue
r366, the syscall number
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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