---
name: "mutex_unlock"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/mutex_unlock"
---

# mutex\_unlock(9)

release the mutex

## NAME

mutex\_unlock - release the mutex

## SYNOPSIS

**void \_\_sched mutex\_unlock(struct mutex \*** *lock***);**

## ARGUMENTS

*lock*

the mutex to be released

## DESCRIPTION

Unlock a mutex that has been locked by this task previously.

This function must not be used in interrupt context. Unlocking of a not locked mutex is not allowed.

This function is similar to (but not equivalent to) **up**.

## AUTHOR

**Rusty Russell** \<rusty@rustcorp.com.au\>

Author.

## COPYRIGHT
