'\" t .\" Title: mutex_lock_interruptible .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: Mutex API reference .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "MUTEX_LOCK_INTERRUPT" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "Mutex API reference" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" mutex_lock_interruptible \- acquire the mutex, interruptible .SH "SYNOPSIS" .HP \w'int\ __sched\ mutex_lock_interruptible('u .BI "int __sched mutex_lock_interruptible(struct\ mutex\ *\ " "lock" ");" .SH "ARGUMENTS" .PP \fIlock\fR .RS 4 the mutex to be acquired .RE .SH "DESCRIPTION" .PP Lock the mutex like \fBmutex_lock\fR, 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\&. .PP This function is similar to (but not equivalent to) \fBdown_interruptible\fR\&. .SH "AUTHOR" .PP \fBRusty Russell\fR <\&rusty@rustcorp.com.au\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br