Q_GETSTATS(2const)

πŸ“¦
version 6.20 Β· 2 versions
, in arch rolling, nixpkgs unstable

πŸ’… Q_GETSTATS β€” the quota stats glow-up (that got cancelled) πŸŽ€

okay bestie, welcome to Q_GETSTATS(2const) β€” yes it's a section-2 constant page, yes it's short, and yes it's a whole deprecated moment. sit with me, this'll take like two seconds. ✨


🌸 NAME 🌸

Q_GETSTATS</p> β€” get statistics about the quota subsystem. that's it. that's the job. πŸ’–


πŸ‘‘ LIBRARY πŸ‘‘

Standard C library (libc, -lc) β€” the classic. she's been doing this since forever. 🫢


✨ SYNOPSIS ✨

#include <sys/quota.h>

[[deprecated]]
int quotactl(QCMD(Q_GETSTATS, type), NULL, 0,
             caddr_t addr);

and if you're on your syscall-girl era (iykyk):

#include <sys/quota.h>    /* Definition of Q_* constants */
#include <sys/syscall.h>  /* Definition of SYS_* constants */
#include <unistd.h>

[[deprecated]]
int syscall(SYS_quotactl_fd, int fd, QCMD(Q_GETSTATS, type), 0,
            struct dqstats *addr);

not me seeing [[deprecated]] twice 😭 the compiler is literally telling you to move on fr fr.


πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it even do? she gets statistics and other generic information about the quota subsystem. the vibe is: numbers about quotas.

the addr argument should be a pointer to a dqstats structure, and that's where the data gets stored, bestie. the structure itself lives in <sys/quota.h> β€” it's defined right there. no cap. πŸ’œ


πŸ“ RETURN VALUE πŸ“

girl just go look at quotactl(2). everything you need is over there. πŸ™ˆ


🌈 ERRORS 🌈

same deal β€” quotactl(2). she's the main character, this page is the sidekick. πŸ’€


⭐ STANDARDS ⭐

None.</p> absolutely zero. nothing. not a single standard claims her. iconic behaviour honestly. πŸ’…


🧚 HISTORY 🧚

okay so this is the sad part. 😭 This operation is obsolete and was removed in Linux 2.4.22. she's gone, bestie. ghosted by the kernel.

but wait β€” the info didn't die, it just moved. the files in /proc/sys/fs/quota/ carry the information instead. so if you're out here missing her, that's where she lives now. πŸŽ€


πŸ‘Έ SEE ALSO πŸ‘Έ


and that's the whole page, babes. πŸ¦‹ this gem came to you straight from Linux man-pages 6.20 and she was last touched on 2026-06-05. go read the real quotactl(2) if you actually want to do something, mwah πŸ’–βœ¨

πŸ“¦ where this page comes from
  • arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • πŸ“œ the page's license: Linux-man-pages-copyleft
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms