---
name: "Q_GETINFO"
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_GETINFO"
---

# Q\_GETINFO(2const)

get information about quotafile.

## NAME

Q\_GETINFO - get information about quotafile.

## LIBRARY

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

## SYNOPSIS

```
#include <sys/quota.h>
```

**int quotactl(QCMD(Q\_GETINFO,** *type***), const char \*\_Nullable** *special***, 0,**              **caddr\_t** *addr***);**

**#include \<sys/quota.h\>**    /\* Definition of **Q\_\*** constants \*/ **#include \<sys/syscall.h\>**  /\* Definition of **SYS\_\*** constants \*/ **#include \<unistd.h\>**

**int syscall(SYS\_quotactl\_fd, int** *fd***, QCMD(Q\_GETINFO,** *type***), 0,**             **struct dqinfo \****addr***);**

## DESCRIPTION

Get information (like grace times) about quotafile.

The *addr* argument should be a pointer to a [**dqinfo**(2type)](/dqinfo/2type.md) structure.

Currently, the kernel fills in all entries of the [**dqinfo**(2type)](/dqinfo/2type.md) structure and marks them all as valid in the *.dqi\_valid* field.

## RETURN VALUE

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

## ERRORS

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

## STANDARDS

Linux.

## HISTORY

Linux 2.4.22.

## SEE ALSO

[**quotactl**(2)](/quotactl/2.md), [**quotactl\_fd**(2)](/quotactl_fd/2.md), [**Q\_SETINFO**(2const)](/Q_SETINFO/2const.md), [**dqinfo**(2type)](/dqinfo/2type.md)
