syscall.sh / riscv64 / shmat

shmat

System V shared memory operations

sys_shmat(int shmid, char *shmaddr, int shmflg)
number196 (0xc4)
abicommon
entry pointsys_shmat
sinceLinux 4.15
man pageshmat(2)
sourceelixir.bootlin.com

Registers

registervalue
a7196, the syscall number
a0int shmid
a1char *shmaddr
a2int shmflg
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/shmat