PR_FUTEX_HASH_GET_SLOTS(2const)

PR_FUTEX_HASH_GET_SLOTS2const

Return the size of the private hash

Usage

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

int prctl(PR_FUTEX_HASH, PR_FUTEX_HASH_GET_SLOTS);

Library

Standard C library (libc, -lc)

Overview

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.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.