syscall.sh / loongarch64 / setsid

setsid

creates a session and sets the process group ID

sys_setsid(void)
number157 (0x9d)
abicommon
entry pointsys_setsid
sinceLinux 5.19
man pagesetsid(2)
sourceelixir.bootlin.com

Registers

registervalue
a7157, the syscall number
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/setsid