syscall.sh / sh / mlock2

mlock2

lock and unlock memory

sys_mlock2(unsigned long start, size_t len, int flags)
number379 (0x17b)
abicommon
entry pointsys_mlock2
sinceLinux 5.0
man pagemlock2(2)
sourceelixir.bootlin.com

Registers

registervalue
r3379, the syscall number
r4unsigned long start
r5size_t len
r6int flags
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/mlock2