other versions
MUTEX_TRYLOCK_RECURS(9) | Mutex API reference | MUTEX_TRYLOCK_RECURS(9) |
NAME¶
mutex_trylock_recursive - trylock variant that allows recursive locking
SYNOPSIS¶
enum mutex_trylock_recursive_enum mutex_trylock_recursive(struct mutex * lock);
ARGUMENTS¶
struct mutex * lock
mutex to be locked
DESCRIPTION¶
This function should not be used, _ever_. It is purely for hysterical GEM raisins, and once those are gone this will be removed.
RETURN¶
MUTEX_TRYLOCK_FAILED - trylock failed, MUTEX_TRYLOCK_SUCCESS - lock acquired, MUTEX_TRYLOCK_RECURSIVE - we already owned the lock.
AUTHOR¶
Rusty Russell <rusty@rustcorp.com.au>
Author.
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |