SysTutorials

Linux Manual Pages › Section 9

mutex_is_locked(9)

mutex_is_locked – is the mutex locked

Synopsis

int mutex_is_locked(struct mutex *lock);

Arguments

lock

the mutex to be queried

Description

Returns 1 if the mutex is locked, 0 if unlocked.

Author

Rusty Russell <rusty [at] rustcorp.com.au>

Author.

Copyright