Scroll to navigation

MUTEX_IS_LOCKED(9) Mutex API reference MUTEX_IS_LOCKED(9)

NAME

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@rustcorp.com.au>
Author.

COPYRIGHT

January 2017 Kernel Hackers Manual 4.8.