shmctl on arm64

System V shared memory control

sys_shmctl(int shmid, int cmd, struct shmid_ds *buf)
number195 (0xc3)
abicommon
kconfigCONFIG_SYSVIPC
familysysvipc see the whole family on arm64
entry pointsys_shmctl
sinceLinux 3.7 or earlier (3.7 is the first release scanned for arm64)
man pageshmctl(2)
sourceelixir.bootlin.com

Registers

registervalue
x8195, the syscall number
x0int shmid
x1int cmd
x2struct shmid_ds *buf
x0the 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/arm64/shmctl