---
name: "ww_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/ww_mutex_unlock"
---

# ww\_mutex\_unlock(9)

release the w/w mutex

## NAME

ww\_mutex\_unlock - release the w/w mutex

## SYNOPSIS

**void \_\_sched ww\_mutex\_unlock(struct ww\_mutex \*** *lock***);**

## ARGUMENTS

*lock*

the mutex to be released

## DESCRIPTION

Unlock a mutex that has been locked by this task previously with any of the ww\_mutex\_lock\* functions (with or without an acquire context). It is forbidden to release the locks after releasing the acquire context.

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

## AUTHOR

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

Author.

## COPYRIGHT
