syscall.sh / x64 / shmat

shmat

System V shared memory operations

sys_shmat(int shmid, char *shmaddr, int shmflg)
number30 (0x1e)
abicommon
entry pointsys_shmat
sinceLinux 3.3
man pageshmat(2)
sourceelixir.bootlin.com

Registers

registervalue
rax30, the syscall number
rdiint shmid
rsichar *shmaddr
rdxint shmflg
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/shmat