syscall.sh / x86 / mmap2

mmap2

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
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.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/mmap2