mutex_lock_interruptible(9)

mutex_lock_interruptible9

Acquire the mutex, interruptible

Usage

int __sched mutex_lock_interruptible(struct mutex * lock);

Arguments

lock

the mutex to be acquired

Overview

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.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

Author

Rusty Russell <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.