syscall.sh / x64 / mlock

mlock

lock and unlock memory

sys_mlock(unsigned long start, size_t len)
number149 (0x95)
abicommon
entry pointsys_mlock
sinceLinux 3.3
man pagemlock(2)
sourceelixir.bootlin.com

Registers

registervalue
rax149, the syscall number
rdiunsigned long start
rsisize_t len
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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