Q_GETSTATS(2const) Q_GETSTATS(2const)

Q_GETSTATS - get statistics about the quota subsystem

Standard C library (libc-lc)

#include <sys/quota.h>
[[deprecated]]
int quotactl(QCMD(Q_GETSTATS, type), NULL, 0,
             caddr_t addr);
#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);

Get statistics and other generic information about the quota subsystem.

The addr argument should be a pointer to a dqstats structure in which data should be stored. This structure is defined in <sys/quota.h>.

See quotactl(2).

See quotactl(2).

None.

This operation is obsolete and was removed in Linux 2.4.22.

Files in /proc/sys/fs/quota/ carry the information instead.

quotactl(2), quotactl_fd(2)

2026-06-05 Linux man-pages 6.19