mlock on loongarch64

lock and unlock memory

sys_mlock(unsigned long start, size_t len)
number228 (0xe4)
abicommon
entry pointsys_mlock
sinceLinux 5.19 or earlier (5.19 is the first release scanned for loongarch64)
man pagemlock(2)
sourceelixir.bootlin.com

Registers

registervalue
a7228, the syscall number
a0unsigned long start
a1size_t len
a0the return value

Then run syscall 0 to enter the kernel.

Same syscall on other architectures

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