syscall.sh / x64 / setpgid

setpgid

set/get process group

sys_setpgid(pid_t pid, pid_t pgid)
number109 (0x6d)
abicommon
entry pointsys_setpgid
sinceLinux 3.3
man pagesetpgid(2)
sourceelixir.bootlin.com

Registers

registervalue
rax109, the syscall number
rdipid_t pid
rsipid_t pgid
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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