mlock2 on metag
lock and unlock memory
sys_mlock2(unsigned long start, size_t len, int flags)
| number | 284 (0x11c) |
|---|---|
| abi | common |
| entry point | sys_mlock2 |
| since | Linux 4.4 |
| man page | mlock2(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 284, the syscall number |
D1Ar1 | unsigned long start |
D0Ar2 | size_t len |
D1Ar3 | int flags |
D0Re0 | the return value |
Then run SWITCH #0x440001 to enter the kernel.
Values wider than one register are packed into consecutive arguments.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 325
- x86 376
- arm64 284
- arm 390
- riscv64 284
- ia32 376
- x32 1073742149
- loongarch64 284
- ppc64 378
- ppc 378
- s390x 374
- mips64 5319
- mipsn32 6323
- mipso32 4359
- alpha 518
- arc 284
- csky 284
- hexagon 284
- ia64 1346, removed in 6.7
- m68k 375
- microblaze 391
- nds32 284, removed in 5.18
- nios2 284
- openrisc 284
- parisc 345
- score 284, removed in 4.17
- sh 379
- sparc 356
- sparc64 356
- tilegx 284, removed in 4.17
- tilepro 284, removed in 4.17
- xtensa 344
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/mlock2?kernel=all