shmdt on metag
System V shared memory operations
sys_shmdt(char *shmaddr)
| number | 197 (0xc5) |
|---|---|
| abi | common |
| kconfig | CONFIG_SYSVIPC |
| family | sysvipc see the whole family on metag |
| entry point | sys_shmdt |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | shmdt(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 197, the syscall number |
D1Ar1 | char *shmaddr |
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 67
- x86 398
- arm64 197
- arm 306
- riscv64 197
- ia32 398
- x32 1073741891
- loongarch64 197
- ppc64 398
- ppc 398
- s390x 398
- mips64 5065
- mipsn32 6065
- mipso32 4398
- alpha 211
- arc 197
- blackfin 340, removed in 4.17
- csky 197
- hexagon 197
- ia64 1115, removed in 6.7
- m68k 398
- microblaze 337
- nds32 197, removed in 5.18
- nios2 197
- openrisc 197
- parisc 193
- score 197, removed in 4.17
- sh 398
- sparc 398
- sparc64 398
- tilegx 197, removed in 4.17
- tilepro 197, removed in 4.17
- xtensa 95
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/shmdt?kernel=all