syscall.sh / mips64 / shmat
shmat
System V shared memory operations
sys_shmat(int shmid, char *shmaddr, int shmflg)
| number | 5029 (0x13a5) |
|---|---|
| abi | n64 |
| entry point | sys_shmat |
| since | Linux 5.0 |
| man page | shmat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 5029, the syscall number |
a0 | int shmid |
a1 | char *shmaddr |
a2 | int shmflg |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 30
- x86 397
- arm64 196
- arm 305
- riscv64 196
- x32 1073741854
- loongarch64 196
- ppc64 397
- ppc 397
- s390x 397
- mipsn32 6029
- mipso32 4397
- alpha 209
- arc 196
- csky 196
- hexagon 196
- m68k 397
- microblaze 335
- nios2 196
- openrisc 196
- parisc 192
- sh 397
- sparc 397
- sparc64 397
- xtensa 93
Get this as JSON: https://api.syscall.sh/v2/syscalls/mips64/shmat