syscall.sh / x64 / shmctl

shmctl

System V shared memory control

sys_shmctl(int shmid, int cmd, struct shmid_ds *buf)
number31 (0x1f)
abicommon
entry pointsys_shmctl
sinceLinux 3.3
man pageshmctl(2)
sourceelixir.bootlin.com

Registers

registervalue
rax31, the syscall number
rdiint shmid
rsiint cmd
rdxstruct shmid_ds *buf
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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