syscall.sh / mipso32 / mmap2

mmap2

map files or devices into memory

sys_mips_mmap2(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long pgoff)
number4210 (0x1072)
abio32
entry pointsys_mips_mmap2
sinceLinux 5.0
man pagemmap2(2)
sourceelixir.bootlin.com

Registers

registervalue
v04210, the syscall number
a0unsigned long addr
a1unsigned long len
a2unsigned long prot
a3unsigned long flags
sp+16unsigned long fd
sp+20unsigned long pgoff
v0the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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