syscall.sh / xtensa / 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)
number80 (0x50)
abicommon
entry pointsys_mmap_pgoff
sinceLinux 5.0
man pagemmap2(2)
sourceelixir.bootlin.com

Registers

registervalue
a280, the syscall number
a6unsigned long addr
a3unsigned long len
a4unsigned long prot
a5unsigned long flags
a8unsigned long fd
a9unsigned long pgoff
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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