Q_XSETQLIM(2const)

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

✨ Q_XSETQLIM πŸ’…βœ¨

okay bestie, welcome to the Q_XSETQLIM(2const) page β€” yes that's a const page, it's a lil baby slice of the big quotactl(2) story, but it's OUR slice and it's iconic.


🌸 NAME 🌸

Q_XSETQLIM β€” set quota limits. yeah. that's the whole vibe. you're the main character setting the limits, not living by them πŸ’–


πŸ“š LIBRARY πŸ“š

Standard C library (libc, -lc). the classic. the OG. she's been here forever and she's not leaving 🫢


πŸŽ€ SYNOPSIS πŸŽ€

okay so there's two ways to slide into this, depending on which function you're using. look:

#include <xfs/xqm.h>      /* See quotactl(2) */
#include <sys/quota.h>

int quotactl(QCMD(Q_XSETQLIM, type), const char *_Nullable special,
             int id, caddr_t addr);

and then the fd-flavoured one:

#include <xfs/xqm.h>      /* See quotactl_fd(2) */
#include <sys/syscall.h>  /* Definition of SYS_* constants */
#include <unistd.h>

int syscall(SYS_quotactl_fd, int fd, QCMD(Q_XSETQLIM, type),
            int id, struct fs_disk_quota *addr);

note: that #include <xfs/xqm.h> is doing a whole lot of heavy lifting β€” go read quotactl(2) and quotactl_fd(2) for the deets, iykyk πŸ¦‹


πŸ”₯ DESCRIPTION πŸ”₯

Set disk quota limits for user id. literally what it says. you're the one in charge now πŸ‘‘

the addr argument is a pointer to an fs_disk_quota(2type) structure β€” so that's where all your actual limit numbers live, bestie.

⚠️ heads up: this operation requires privilege (CAP_SYS_ADMIN). no cap, no limits. the kernel does NOT care how cute your struct is πŸ’€

⭐ RETURN VALUE ⭐

See quotactl(2). (all the return-value lore lives over there, go peek πŸ’œ)


😭 ERRORS 😭

See quotactl(2). (same deal, the error tea is all on that page πŸ“)


🌈 STANDARDS 🌈

Linux. that's it. that's the standard. home turf πŸŽ€


🧚 HISTORY 🧚

Linux. yep. also Linux. she's been Linux the whole time ✨


πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie πŸ’… go forth and enforce some limits responsibly (or don't, it needs CAP_SYS_ADMIN anyway πŸ™ˆ).

this adorable lil rewrite is brought to you by Linux man-pages 6.20, dated 2026-06-05 β€” mwah, stan the man-pages team πŸ«ΆπŸ’–

πŸ“¦ 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