#include <linux/linkage.h>
#include <linux/plist.h>
#include <linux/spinlock_types.h>
Go to the source code of this file.
#define __DEBUG_RT_MUTEX_INITIALIZER |
( |
|
mutexname | ) |
|
#define __RT_MUTEX_INITIALIZER |
( |
|
mutexname | ) |
|
#define INIT_RT_MUTEXES |
( |
|
tsk | ) |
|
#define rt_mutex_debug_check_no_locks_held |
( |
|
task | ) |
do { } while (0) |
#define rt_mutex_debug_task_free |
( |
|
t | ) |
do { } while (0) |
__rt_mutex_init - initialize the rt lock
: the rt lock to be initialized
Initialize the rt lock to unlocked state.
Initializing of a locked rt lock is not allowed
Definition at line 889 of file rtmutex.c.
rt_mutex_destroy - mark a mutex unusable : the mutex to be destroyed
This function marks the mutex uninitialized, and any subsequent use of the mutex is forbidden. The mutex must not be locked when this function is called.
Definition at line 870 of file rtmutex.c.
rt_mutex_lock_interruptible - lock a rt_mutex interruptible
: the rt_mutex to be locked : deadlock detection on/off
Returns: 0 on success -EINTR when interrupted by a signal -EDEADLK when the lock would deadlock (when deadlock detection is on)
Definition at line 802 of file rtmutex.c.
rt_mutex_timed_lock - lock a rt_mutex interruptible the timeout structure is provided by the caller
: the rt_mutex to be locked : timeout structure or NULL (no timeout) : deadlock detection on/off
Returns: 0 on success -EINTR when interrupted by a signal -ETIMEDOUT when the timeout expired -EDEADLK when the lock would deadlock (when deadlock detection is on)
Definition at line 828 of file rtmutex.c.