syscall.sh / x86 / 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)
number342 (0x156)
abii386
entry pointsys_open_by_handle_at
sinceLinux 3.3
man pageopen_by_handle_at(2)
sourceelixir.bootlin.com

Registers

registervalue
eax342, the syscall number
ebxint mountdirfd
ecxstruct file_handle *handle
edxint flags
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/open_by_handle_at