syscall.sh / csky / mmap2

mmap2

map files or devices into memory

sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long offset)
number222 (0xde)
abi32
entry pointsys_mmap2
sinceLinux 4.20
man pagemmap2(2)
sourceelixir.bootlin.com

Registers

registervalue
r7222, the syscall number
a0unsigned long addr
a1unsigned long len
a2unsigned long prot
a3unsigned long flags
r4unsigned long fd
r5unsigned long offset
a0the return value

Then run trap 0 to enter the kernel.

Same syscall on other architectures

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