'\" t .\" Title: mutex_unlock .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Mutex API reference .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "MUTEX_UNLOCK" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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_unlock \- release the mutex .SH "SYNOPSIS" .HP \w'void\ __sched\ mutex_unlock('u .BI "void __sched mutex_unlock(struct\ mutex\ *\ " "lock" ");" .SH "ARGUMENTS" .PP \fIlock\fR .RS 4 the mutex to be released .RE .SH "DESCRIPTION" .PP Unlock a mutex that has been locked by this task previously\&. .PP This function must not be used in interrupt context\&. Unlocking of a not locked mutex is not allowed\&. .PP This function is similar to (but not equivalent to) \fBup\fR\&. .SH "AUTHOR" .PP \fBRusty Russell\fR <\&rusty@rustcorp.com.au\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br