fsconfig on x64
configure new or existing filesystem context
sys_fsconfig(int fs_fd, unsigned int cmd, const char *key, const void *value, int aux)
| number | 431 (0x1af) |
|---|---|
| abi | common |
| entry point | sys_fsconfig |
| since | Linux 5.2 |
| man page | fsconfig(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 431, the syscall number |
rdi | int fs_fd |
rsi | unsigned int cmd |
rdx | const char *key |
r10 | const void *value |
r8 | int aux |
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 431
- arm64 431
- arm 431
- riscv64 431
- ia32 431
- x32 1073742255
- loongarch64 431
- ppc64 431
- ppc 431
- s390x 431
- mips64 5431
- mipsn32 6431
- mipso32 4431
- alpha 541
- arc 431
- csky 431
- hexagon 431
- ia64 1455, removed in 6.7
- m68k 431
- microblaze 431
- nds32 431, removed in 5.18
- nios2 431
- openrisc 431
- parisc 431
- sh 431
- sparc 431
- sparc64 431
- xtensa 431
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/fsconfig