---
name: "Q_XGETNEXTQUOTA"
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_XGETNEXTQUOTA"
---

# Q\_XGETNEXTQUOTA(2const)

get disk quota limits for next user or group for an XFS filesystem

## NAME

Q\_XGETNEXTQUOTA - get disk quota limits for next user or group for an XFS filesystem

## LIBRARY

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

## SYNOPSIS

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

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

**#include \<xfs/xqm.h\>**      /\* See [quotactl\_fd(2)](/quotactl_fd/2.md) \*/ **#include \<sys/syscall.h\>**  /\* Definition of **SYS\_\*** constants \*/ **#include \<unistd.h\>**

**int syscall(SYS\_quotactl\_fd, int** *fd***, QCMD(Q\_XGETNEXTQUOTA,** *type***),**              **int** *id***, struct fs\_disk\_quota \****addr***);**

## DESCRIPTION

This operation is the same as [**Q\_XGETQUOTA**(2const)](/Q_XGETQUOTA/2const.md), but it returns (in the [**fs\_disk\_quota**(2type)](/fs_disk_quota/2type.md) structure pointed to by *addr*) quota information for the next ID greater than or equal to *id* that has a quota set.

Since [**fs\_disk\_quota**(2type)](/fs_disk_quota/2type.md) already has *q\_id* field, no separate structure type is needed (in contrast with [**Q\_GETQUOTA**(2const)](/Q_GETQUOTA/2const.md) and [**Q\_GETNEXTQUOTA**(2const)](/Q_GETNEXTQUOTA/2const.md)).

## RETURN VALUE

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

## ERRORS

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

- **ESRCH**

  There is no ID greater than or equal to *id* that has an active quota.

## STANDARDS

Linux.

## HISTORY

Linux 4.6.

## SEE ALSO

[**quotactl**(2)](/quotactl/2.md), [**quotactl\_fd**(2)](/quotactl_fd/2.md), [**Q\_XGETQUOTA**(2const)](/Q_XGETQUOTA/2const.md), [**fs\_disk\_quota**(2type)](/fs_disk_quota/2type.md)
