syscall.sh / x86 / 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)
number341 (0x155)
abii386
entry pointsys_name_to_handle_at
sinceLinux 3.3
man pagename_to_handle_at(2)
sourceelixir.bootlin.com

Registers

registervalue
eax341, the syscall number
ebxint dfd
ecxconst char *name
edxstruct file_handle *handle
esivoid *mnt_id
ediint flag
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

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