syscall.sh / s390x / shmctl

shmctl

System V shared memory control

sys_shmctl(int shmid, int cmd, struct shmid_ds *buf)
number396 (0x18c)
abicommon
entry pointsys_shmctl
sinceLinux 5.1
man pageshmctl(2)
sourceelixir.bootlin.com

Registers

registervalue
r1396, the syscall number
r2int shmid
r3int cmd
r4struct shmid_ds *buf
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/s390x/shmctl