syscall.sh / arm64 / mmap

mmap

map or unmap files or devices into memory

sys_mmap(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long off)
number222 (0xde)
abi64
entry pointsys_mmap
sinceLinux 3.7
man pagemmap(2)
sourceelixir.bootlin.com

Registers

registervalue
x8222, the syscall number
x0unsigned long addr
x1unsigned long len
x2unsigned long prot
x3unsigned long flags
x4unsigned long fd
x5unsigned long off
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/arm64/mmap