quotactl on x64
manipulate disk quotas
sys_quotactl(unsigned int cmd, const char *special, qid_t id, void *addr)
| number | 179 (0xb3) |
|---|---|
| abi | common |
| kconfig | CONFIG_QUOTACTL |
| entry point | sys_quotactl |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for x64) |
| man page | quotactl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 179, the syscall number |
rdi | unsigned int cmd |
rsi | const char *special |
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 131
- arm64 60
- arm 131
- riscv64 60
- ia32 131
- x32 1073742003
- loongarch64 60
- ppc64 131
- ppc 131
- s390x 131
- mips64 5172
- mipsn32 6172
- mipso32 4131
- alpha 148
- arc 60
- blackfin 131, removed in 4.17
- cris 131, removed in 4.17
- csky 60
- frv 131, removed in 4.17
- hexagon 60
- ia64 1137, removed in 6.7
- m32r 131, removed in 4.17
- m68k 131
- metag 60, removed in 4.17
- microblaze 131
- mn10300 131, removed in 4.17
- nds32 60, removed in 5.18
- nios2 60
- openrisc 60
- parisc 131
- score 60, removed in 4.17
- sh 131
- sparc 165
- sparc64 165
- tilegx 60, removed in 4.17
- tilepro 60, removed in 4.17
- xtensa 204
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/quotactl