shmat on ia32

System V shared memory operations

compat_sys_shmat(int shmid, char *shmaddr, int shmflg)
number397 (0x18d)
abii386
kconfigCONFIG_SYSVIPC
familysysvipc
entry pointcompat_sys_shmat
sinceLinux 5.1
man pageshmat(2)
sourceelixir.bootlin.com

Registers

registervalue
eax397, the syscall number
ebxint shmid
ecxchar *shmaddr
edxint shmflg
eaxthe return value

Then run int 0x80 to enter the kernel.

This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/ia32/shmat