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)
number265 (0x109)
abicommon
entry pointsys_open_by_handle_at
sinceLinux 4.15
man pageopen_by_handle_at(2)
sourceelixir.bootlin.com

Registers

registervalue
a7265, the syscall number
a0int mountdirfd
a1struct file_handle *handle
a2int flags
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/open_by_handle_at