---
name: "Q_XSETQLIM"
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_XSETQLIM"
---

# Q\_XSETQLIM(2const)

set quota limits

## NAME

Q\_XSETQLIM - set quota limits

## LIBRARY

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

## SYNOPSIS

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

**int quotactl(QCMD(Q\_XSETQLIM,** *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\_XSETQLIM,** *type***),**             **int** *id***, struct fs\_disk\_quota \****addr***);**

## DESCRIPTION

Set disk quota limits for user *id*.

The *addr* argument is a pointer to an [**fs\_disk\_quota**(2type)](/fs_disk_quota/2type.md) structure.

This operation requires privilege (**CAP\_SYS\_ADMIN**).

## RETURN VALUE

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

## ERRORS

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

## STANDARDS

Linux.

## HISTORY

Linux.

## SEE ALSO

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