PR_FUTEX_HASH_GET_SLOTS − return the size of the private hash
Standard C library (libc, −lc)
#include
<linux/prctl.h> /* Definition of PR_*
constants */
#include <sys/prctl.h>
int prctl(PR_FUTEX_HASH, PR_FUTEX_HASH_GET_SLOTS);
Return the current size of the private hash.
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.
Linux.
Linux 6.17.
prctl(2), PR_FUTEX_HASH(2const)