---
name: "Q_GETSTATS"
section: "2const"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Q_GETSTATS"
---

# Q\_GETSTATS(2const)

get statistics about the quota subsystem

## NAME

Q\_GETSTATS - get statistics about the quota subsystem

## LIBRARY

Standard C library (*libc*, *-lc*)

## SYNOPSIS

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

## DESCRIPTION

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)](/quotactl/2.md).

## ERRORS

See [**quotactl**(2)](/quotactl/2.md).

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

## SEE ALSO

[**quotactl**(2)](/quotactl/2.md), [**quotactl\_fd**(2)](/quotactl_fd/2.md)
