syscall.sh / sparc / 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 pgoff)
number56 (0x38)
abi32
entry pointsys_mmap2
sinceLinux 5.0
man pagemmap2(2)
sourceelixir.bootlin.com

Registers

registervalue
g156, the syscall number
o0unsigned long addr
o1unsigned long len
o2unsigned long prot
o3unsigned long flags
o4unsigned long fd
o5unsigned long pgoff
o0the return value

Then run t 0x10 to enter the kernel.

Same syscall on other architectures

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