pthread_mutexattr_getprioceiling(3C) gets the priority ceiling of a mutex.
#include <pthread.h> int pthread_mutex_getprioceiling(const pthread_mutex_t *restrict mutex, int *restrict prioceiling);
pthread_mutex_getprioceiling() returns the priority ceiling, prioceiling of a mutex.
If any of the following conditions occurs, pthread_mutexatt_getprioceiling() fails and returns the corresponding value.
If any of the following conditions occurs, pthread_mutex_getprioceiling() might fail and return the corresponding value.
The value specified by mutex does not refer to a currently existing mutex.
The caller does not have the privilege to perform the operation.