open_by_handle_at on ia32
obtain handle for a pathname and open file via a handle
compat_sys_open_by_handle_at(int mountdirfd, struct file_handle *handle, int flags)
| number | 342 (0x156) |
|---|---|
| abi | i386 |
| kconfig | CONFIG_FHANDLE |
| entry point | compat_sys_open_by_handle_at |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for ia32) |
| man page | open_by_handle_at(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 342, the syscall number |
ebx | int mountdirfd |
ecx | struct file_handle *handle |
edx | int flags |
eax | the 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
- x64 304
- x86 342
- arm64 265
- arm 371
- riscv64 265
- x32 1073742128
- loongarch64 265
- ppc64 346
- ppc 346
- s390x 336
- mips64 5299
- mipsn32 6304
- mipso32 4340
- alpha 498
- arc 265
- csky 265
- hexagon 265
- m68k 341
- microblaze 372
- nios2 265
- openrisc 265
- parisc 326
- sh 360
- sparc 333
- sparc64 333
- xtensa 325
Get this as JSON: https://api.syscall.sh/v2/syscalls/ia32/open_by_handle_at