name_to_handle_at on ia32

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
kconfigCONFIG_FHANDLE
entry pointsys_name_to_handle_at
sinceLinux 3.3 or earlier (3.3 is the first release scanned for ia32)
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.

This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.

Same syscall on other architectures

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