syscall.sh / x32 / open_tree
open_tree
open path or create detached mount object and attach to fd
sys_open_tree(int dfd, const char *path, unsigned flags)
| number | 1073742252 (0x400001ac) |
|---|---|
| abi | common |
| entry point | sys_open_tree |
| since | Linux 5.2 |
| man page | open_tree(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073742252, the syscall number |
rdi | int dfd |
rsi | const char *path |
rdx | unsigned flags |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 428
- x86 428
- arm64 428
- arm 428
- riscv64 428
- loongarch64 428
- ppc64 428
- ppc 428
- s390x 428
- mips64 5428
- mipsn32 6428
- mipso32 4428
- alpha 538
- arc 428
- csky 428
- hexagon 428
- m68k 428
- microblaze 428
- nios2 428
- openrisc 428
- parisc 428
- sh 428
- sparc 428
- sparc64 428
- xtensa 428
Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/open_tree