getsid on metag
get session ID
sys_getsid(pid_t pid)
| number | 156 (0x9c) |
|---|---|
| abi | common |
| entry point | sys_getsid |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | getsid(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 156, the syscall number |
D1Ar1 | pid_t pid |
D0Re0 | the return value |
Then run SWITCH #0x440001 to enter the kernel.
Values wider than one register are packed into consecutive arguments.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 124
- x86 147
- arm64 156
- arm 147
- riscv64 156
- ia32 147
- x32 1073741948
- loongarch64 156
- ppc64 147
- ppc 147
- s390x 147
- mips64 5122
- mipsn32 6122
- mipso32 4151
- alpha 234
- arc 156
- blackfin 147, removed in 4.17
- cris 147, removed in 4.17
- csky 156
- frv 147, removed in 4.17
- hexagon 156
- ia64 1082, removed in 6.7
- m32r 147, removed in 4.17
- m68k 147
- microblaze 147
- mn10300 147, removed in 4.17
- nds32 156, removed in 5.18
- nios2 156
- openrisc 156
- parisc 147
- score 156, removed in 4.17
- sh 147
- sparc 252
- sparc64 252
- tilegx 156, removed in 4.17
- tilepro 156, removed in 4.17
- xtensa 129
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/getsid?kernel=all