quotactl_fd on x64
manipulate disk quotas
sys_quotactl_fd(unsigned int fd, unsigned int cmd, qid_t id, void *addr)
| number | 443 (0x1bb) |
|---|---|
| abi | common |
| kconfig | CONFIG_QUOTACTL |
| entry point | sys_quotactl_fd |
| since | Linux 5.14 |
| man page | quotactl_fd(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 443, the syscall number |
rdi | unsigned int fd |
rsi | unsigned int cmd |
rdx | qid_t id |
r10 | void *addr |
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 443
- arm64 443
- arm 443
- riscv64 443
- ia32 443
- x32 1073742267
- loongarch64 443
- ppc64 443
- ppc 443
- s390x 443
- mips64 5443
- mipsn32 6443
- mipso32 4443
- alpha 553
- arc 443
- csky 443
- hexagon 443
- ia64 1467, removed in 6.7
- m68k 443
- microblaze 443
- nds32 443, removed in 5.18
- nios2 443
- openrisc 443
- parisc 443
- sh 443
- sparc 443
- sparc64 443
- xtensa 443
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/quotactl_fd