fsmount on x64
instantiate mount object from filesystem context
sys_fsmount(int fs_fd, unsigned int flags, unsigned int ms_flags)
| number | 432 (0x1b0) |
|---|---|
| abi | common |
| entry point | sys_fsmount |
| since | Linux 5.2 |
| man page | fsmount(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 432, the syscall number |
rdi | int fs_fd |
rsi | unsigned int flags |
rdx | unsigned int ms_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 432
- arm64 432
- arm 432
- riscv64 432
- ia32 432
- x32 1073742256
- loongarch64 432
- ppc64 432
- ppc 432
- s390x 432
- mips64 5432
- mipsn32 6432
- mipso32 4432
- alpha 542
- arc 432
- csky 432
- hexagon 432
- ia64 1456, removed in 6.7
- m68k 432
- microblaze 432
- nds32 432, removed in 5.18
- nios2 432
- openrisc 432
- parisc 432
- sh 432
- sparc 432
- sparc64 432
- xtensa 432
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/fsmount