syscall.sh / riscv64 / open_by_handle_at
open_by_handle_at
obtain handle for a pathname and open file via a handle
sys_open_by_handle_at(int mountdirfd, struct file_handle *handle, int flags)
| number | 265 (0x109) |
|---|---|
| abi | common |
| entry point | sys_open_by_handle_at |
| since | Linux 4.15 |
| man page | open_by_handle_at(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 265, the syscall number |
a0 | int mountdirfd |
a1 | struct file_handle *handle |
a2 | int flags |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 304
- x86 342
- arm64 265
- arm 371
- x32 1073742128
- loongarch64 265
- ppc64 346
- ppc 346
- s390x 336
- mips64 5299
- mipsn32 6304
- mipso32 4340
- alpha 498
- arc 265
- csky 265
- hexagon 265
- m68k 341
- microblaze 372
- nios2 265
- openrisc 265
- parisc 326
- sh 360
- sparc 333
- sparc64 333
- xtensa 325
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/open_by_handle_at