syscall.sh / xtensa / mlock
mlock
lock and unlock memory
sys_mlock(unsigned long start, size_t len)
| number | 84 (0x54) |
|---|---|
| abi | common |
| entry point | sys_mlock |
| since | Linux 5.0 |
| man page | mlock(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a2 | 84, the syscall number |
a6 | unsigned long start |
a3 | size_t len |
a2 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 149
- x86 150
- arm64 228
- arm 150
- riscv64 228
- x32 1073741973
- loongarch64 228
- ppc64 150
- ppc 150
- s390x 150
- mips64 5146
- mipsn32 6146
- mipso32 4154
- alpha 314
- arc 228
- csky 228
- hexagon 228
- m68k 150
- microblaze 150
- nios2 228
- openrisc 228
- parisc 150
- sh 150
- sparc 237
- sparc64 237
Get this as JSON: https://api.syscall.sh/v2/syscalls/xtensa/mlock