syscall.sh / openrisc / shmat

shmat

System V shared memory operations

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

Registers

registervalue
r11196, the syscall number
r3int shmid
r4char *shmaddr
r5int shmflg
r11the return value

Then run l.sys 1 to enter the kernel.

Same syscall on other architectures

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