| 1 |
.\" Copyright, the authors of the Linux man-pages project |
| 2 |
.\" |
| 3 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 4 |
.\" |
| 5 |
.TH PR_FUTEX_HASH_GET_SLOTS 2const 2025-08-19 "Linux man-pages 6.18" |
| 6 |
.SH NAME |
| 7 |
PR_FUTEX_HASH_GET_SLOTS |
| 8 |
\- |
| 9 |
return the size of the private hash |
| 10 |
.SH LIBRARY |
| 11 |
Standard C library |
| 12 |
.RI ( libc ,\~ \-lc ) |
| 13 |
.SH SYNOPSIS |
| 14 |
.nf |
| 15 |
.BR "#include <linux/prctl.h>" " /* Definition of " PR_* " constants */" |
| 16 |
.B #include <sys/prctl.h> |
| 17 |
.P |
| 18 |
.B int prctl(PR_FUTEX_HASH, PR_FUTEX_HASH_GET_SLOTS); |
| 19 |
.fi |
| 20 |
.SH DESCRIPTION |
| 21 |
Return the current size of the private hash. |
| 22 |
.SH RETURN VALUE |
| 23 |
A value of 0 means that a private hash has not been allocated |
| 24 |
and the global hash is in use. |
| 25 |
.P |
| 26 |
A value >0 specifies the size of the private hash. |
| 27 |
.P |
| 28 |
On error, \-1 is returned, and |
| 29 |
.I errno |
| 30 |
is set to indicate the error. |
| 31 |
.SH STANDARDS |
| 32 |
Linux. |
| 33 |
.SH HISTORY |
| 34 |
Linux 6.17. |
| 35 |
.SH SEE ALSO |
| 36 |
.BR prctl (2), |
| 37 |
.BR PR_FUTEX_HASH (2const) |