mmap2 on ia32

map files or devices into memory

sys_mmap_pgoff(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long pgoff)
number192 (0xc0)
abii386
entry pointsys_mmap_pgoff
sinceLinux 3.3 or earlier (3.3 is the first release scanned for ia32)
man pagemmap2(2)
sourceelixir.bootlin.com

Registers

registervalue
eax192, the syscall number
ebxunsigned long addr
ecxunsigned long len
edxunsigned long prot
esiunsigned long flags
ediunsigned long fd
ebpunsigned long pgoff
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/mmap2