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

# PR\_FUTEX\_HASH\_GET\_SLOTS(2const)

return the size of the private hash

## NAME

PR\_FUTEX\_HASH\_GET\_SLOTS - return the size of the private hash

## LIBRARY

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

## SYNOPSIS

```
#include <linux/prctl.h>  /* Definition of PR_* constants */
#include <sys/prctl.h>
```

**int prctl(PR\_FUTEX\_HASH, PR\_FUTEX\_HASH\_GET\_SLOTS);**

## DESCRIPTION

Return the current size of the private hash.

## RETURN VALUE

A value of 0 means that a private hash has not been allocated and the global hash is in use.

A value \>0 specifies the size of the private hash.

On error, -1 is returned, and *errno* is set to indicate the error.

## STANDARDS

Linux.

## HISTORY

Linux 6.17.

## SEE ALSO

[**prctl**(2)](/prctl/2.md), [**PR\_FUTEX\_HASH**(2const)](/PR_FUTEX_HASH/2const.md)
