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.