Q_GETSTATS(2const)

Q_GETSTATS2const

Get statistics about the quota subsystem

Usage

#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);

Library

Standard C library (libc, -lc)

Overview

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>.

Return value

See quotactl(2).

Errors

See quotactl(2).

Standards

None.

History

This operation is obsolete and was removed in Linux 2.4.22.

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

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.