other versions
- stretch 4.9.168-1
MUTEX_LOCK_INTERRUPT(9) | Mutex API reference | MUTEX_LOCK_INTERRUPT(9) |
NAME¶
mutex_lock_interruptible - acquire the mutex, interruptibleSYNOPSIS¶
int __sched mutex_lock_interruptible(struct mutex * lock);
ARGUMENTS¶
lockthe mutex to be acquired
DESCRIPTION¶
Lock the mutex like mutex_lock, and return 0 if the mutex has been acquired or sleep until the mutex becomes available. If a signal arrives while waiting for the lock then this function returns -EINTR.This function is similar to (but not equivalent to) down_interruptible.
AUTHOR¶
Rusty Russell <rusty@rustcorp.com.au>Author.
COPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |