fsopen on x64
create a new filesystem context
sys_fsopen(const char *fs_name, unsigned int flags)
| number | 430 (0x1ae) |
|---|---|
| abi | common |
| entry point | sys_fsopen |
| since | Linux 5.2 |
| man page | fsopen(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 430, the syscall number |
rdi | const char *fs_name |
rsi | unsigned int flags |
rax | the return value |
Then run syscall to enter the kernel.
The syscall instruction clobbers rcx (the return address lands in rcx) and r11 (the flags land in r11).
Since Linux 5.14 the kernel reads the syscall number from eax and ignores the upper 32 bits of rax. Older kernels fail with ENOSYS when those bits are not zero, and mov eax, N clears them, so it works on both.
Same syscall on other architectures
- x86 430
- arm64 430
- arm 430
- riscv64 430
- ia32 430
- x32 1073742254
- loongarch64 430
- ppc64 430
- ppc 430
- s390x 430
- mips64 5430
- mipsn32 6430
- mipso32 4430
- alpha 540
- arc 430
- csky 430
- hexagon 430
- ia64 1454, removed in 6.7
- m68k 430
- microblaze 430
- nds32 430, removed in 5.18
- nios2 430
- openrisc 430
- parisc 430
- sh 430
- sparc 430
- sparc64 430
- xtensa 430
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/fsopen