syscall.sh / x86 / shmctl

shmctl

System V shared memory control

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

Registers

registervalue
eax396, the syscall number
ebxint shmid
ecxint cmd
edxstruct shmid_ds *buf
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

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