syscall.sh / mipso32 / mmap

mmap

map or unmap files or devices into memory

sys_mips_mmap(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, off_t offset)
number4090 (0xffa)
abio32
entry pointsys_mips_mmap
sinceLinux 5.0
man pagemmap(2)
sourceelixir.bootlin.com

Registers

registervalue
v04090, the syscall number
a0unsigned long addr
a1unsigned long len
a2unsigned long prot
a3unsigned long flags
sp+16unsigned long fd
sp+20off_t offset
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/mmap