userfaultfd on loongarch64
create a file descriptor for handling page faults in user space
sys_userfaultfd(int flags)
| number | 282 (0x11a) |
|---|---|
| abi | common |
| kconfig | CONFIG_USERFAULTFD |
| entry point | sys_userfaultfd |
| since | Linux 5.19 or earlier (5.19 is the first release scanned for loongarch64) |
| man page | userfaultfd(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 282, the syscall number |
a0 | int flags |
a0 | the return value |
Then run syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 323
- x86 374
- arm64 282
- arm 388
- riscv64 282
- ia32 374
- x32 1073742147
- ppc64 364
- ppc 364
- s390x 355
- mips64 5317
- mipsn32 6321
- mipso32 4357
- alpha 516
- arc 282
- csky 282
- hexagon 282
- ia64 1343, removed in 6.7
- m68k 373
- metag 282, removed in 4.17
- microblaze 389
- nds32 282, removed in 5.18
- nios2 282
- openrisc 282
- parisc 344
- score 282, removed in 4.17
- sh 377
- sparc 352
- sparc64 352
- tilegx 282, removed in 4.17
- tilepro 282, removed in 4.17
- xtensa 342
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/userfaultfd