shmat on tilepro
System V shared memory operations
sys_shmat(int shmid, char *shmaddr, int shmflg)
| number | 196 (0xc4) |
|---|---|
| abi | common |
| kconfig | CONFIG_SYSVIPC |
| family | sysvipc see the whole family on tilepro |
| entry point | sys_shmat |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for tilepro) |
| man page | shmat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r10 | 196, the syscall number |
r0 | int shmid |
r1 | char *shmaddr |
r2 | int shmflg |
r0 | the return value |
Then run swint1 to enter the kernel.
The kernel uses r1 to signal an error for ordinary calls.
Fast atomic calls use negative numbers and have different register behavior.
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 30
- x86 397
- arm64 196
- arm 305
- riscv64 196
- ia32 397
- x32 1073741854
- loongarch64 196
- ppc64 397
- ppc 397
- s390x 397
- mips64 5029
- mipsn32 6029
- mipso32 4397
- alpha 209
- arc 196
- blackfin 338, removed in 4.17
- csky 196
- hexagon 196
- ia64 1114, removed in 6.7
- m68k 397
- metag 196, removed in 4.17
- microblaze 335
- nds32 196, removed in 5.18
- nios2 196
- openrisc 196
- parisc 192
- score 196, removed in 4.17
- sh 397
- sparc 397
- sparc64 397
- tilegx 196, removed in 4.17
- xtensa 93
Get this as JSON: https://api.syscall.sh/v2/syscalls/tilepro/shmat?kernel=all