fspick on x64
select filesystem for reconfiguration
sys_fspick(int dfd, const char *path, unsigned int flags)
| number | 433 (0x1b1) |
|---|---|
| abi | common |
| entry point | sys_fspick |
| since | Linux 5.2 |
| man page | fspick(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 433, the syscall number |
rdi | int dfd |
rsi | const char *path |
rdx | 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 433
- arm64 433
- arm 433
- riscv64 433
- ia32 433
- x32 1073742257
- loongarch64 433
- ppc64 433
- ppc 433
- s390x 433
- mips64 5433
- mipsn32 6433
- mipso32 4433
- alpha 543
- arc 433
- csky 433
- hexagon 433
- ia64 1457, removed in 6.7
- m68k 433
- microblaze 433
- nds32 433, removed in 5.18
- nios2 433
- openrisc 433
- parisc 433
- sh 433
- sparc 433
- sparc64 433
- xtensa 433
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/fspick