syscall.sh / sh / mmap

mmap

map or unmap files or devices into memory

old_mmap(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, int fd, unsigned long off)
number90 (0x5a)
abicommon
entry pointold_mmap
sinceLinux 5.0
man pagemmap(2)
sourceelixir.bootlin.com

Registers

registervalue
r390, the syscall number
r4unsigned long addr
r5unsigned long len
r6unsigned long prot
r7unsigned long flags
r0int fd
r1unsigned long off
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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