syscall.sh / sh / name_to_handle_at

name_to_handle_at

obtain handle for a pathname and open file via a handle

sys_name_to_handle_at(int dfd, const char *name, struct file_handle *handle, void *mnt_id, int flag)
number359 (0x167)
abicommon
entry pointsys_name_to_handle_at
sinceLinux 5.0
man pagename_to_handle_at(2)
sourceelixir.bootlin.com

Registers

registervalue
r3359, the syscall number
r4int dfd
r5const char *name
r6struct file_handle *handle
r7void *mnt_id
r0int flag
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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