syscall.sh / s390x / setpgid
setpgid
set/get process group
sys_setpgid(pid_t pid, pid_t pgid)
| number | 57 (0x39) |
|---|---|
| abi | common |
| entry point | sys_setpgid |
| since | Linux 4.16 |
| man page | setpgid(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r1 | 57, the syscall number |
r2 | pid_t pid |
r3 | pid_t pgid |
r2 | the return value |
Then run svc 0 to enter the kernel.
Same syscall on other architectures
- x64 109
- x86 57
- arm64 154
- arm 57
- riscv64 154
- x32 1073741933
- loongarch64 154
- ppc64 57
- ppc 57
- mips64 5107
- mipsn32 6107
- mipso32 4057
- alpha 39
- arc 154
- csky 154
- hexagon 154
- m68k 57
- microblaze 57
- nios2 154
- openrisc 154
- parisc 57
- sh 57
- sparc 185
- sparc64 185
- xtensa 148
Get this as JSON: https://api.syscall.sh/v2/syscalls/s390x/setpgid