mutex_trylock (9) - Linux Man Pages
mutex_trylock: try to acquire the mutex, without waiting
mutex_trylock - try to acquire the mutex, without waiting
int __sched mutex_trylock(struct mutex
- the mutex to be acquired
this function follows the spin_trylock convention, so it is negated from the down_trylock return values! Be careful about this when converting semaphore users to mutexes.
Rusty Russell <rusty [at] rustcorp.com.au>