syscall.sh / csky / 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 | 428 (0x1ac) |
|---|---|
| abi | common |
| entry point | sys_open_tree |
| since | Linux 5.2 |
| man page | open_tree(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r7 | 428, the syscall number |
a0 | int dfd |
a1 | const char *path |
a2 | unsigned flags |
a0 | the return value |
Then run trap 0 to enter the kernel.
Same syscall on other architectures
- x64 428
- x86 428
- arm64 428
- arm 428
- riscv64 428
- x32 1073742252
- loongarch64 428
- ppc64 428
- ppc 428
- s390x 428
- mips64 5428
- mipsn32 6428
- mipso32 4428
- alpha 538
- arc 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/csky/open_tree