shmat on arm64

System V shared memory operations

sys_shmat(int shmid, char *shmaddr, int shmflg)
number196 (0xc4)
abicommon
kconfigCONFIG_SYSVIPC
familysysvipc see the whole family on arm64
entry pointsys_shmat
sinceLinux 3.7 or earlier (3.7 is the first release scanned for arm64)
man pageshmat(2)
sourceelixir.bootlin.com

Registers

registervalue
x8196, the syscall number
x0int shmid
x1char *shmaddr
x2int shmflg
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/shmat