syscall.sh / x86 / mlock
mlock
lock and unlock memory
sys_mlock(unsigned long start, size_t len)
| number | 150 (0x96) |
|---|---|
| abi | i386 |
| entry point | sys_mlock |
| since | Linux 3.3 |
| man page | mlock(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 150, the syscall number |
ebx | unsigned long start |
ecx | size_t len |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 149
- 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
- xtensa 84
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/mlock