shmctl on score
System V shared memory control
sys_shmctl(int shmid, int cmd, struct shmid_ds *buf)
| number | 195 (0xc3) |
|---|---|
| abi | common |
| kconfig | CONFIG_SYSVIPC |
| family | sysvipc see the whole family on score |
| entry point | sys_shmctl |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | shmctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 195, the syscall number |
r4 | int shmid |
r5 | int cmd |
r6 | struct shmid_ds *buf |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
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 31
- x86 396
- arm64 195
- arm 308
- riscv64 195
- ia32 396
- x32 1073741855
- loongarch64 195
- ppc64 396
- ppc 396
- s390x 396
- mips64 5030
- mipsn32 6030
- mipso32 4396
- alpha 210
- arc 195
- blackfin 339, removed in 4.17
- csky 195
- hexagon 195
- ia64 1116, removed in 6.7
- m68k 396
- metag 195, removed in 4.17
- microblaze 336
- nds32 195, removed in 5.18
- nios2 195
- openrisc 195
- parisc 195
- sh 396
- sparc 396
- sparc64 396
- tilegx 195, removed in 4.17
- tilepro 195, removed in 4.17
- xtensa 94
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/shmctl?kernel=all