---
name: "mutex_is_locked"
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_is_locked"
---

# mutex\_is\_locked(9)

is the mutex locked

## NAME

mutex\_is\_locked - is the mutex locked

## SYNOPSIS

**int mutex\_is\_locked(struct mutex \*** *lock***);**

## ARGUMENTS

*lock*

the mutex to be queried

## DESCRIPTION

Returns 1 if the mutex is locked, 0 if unlocked.

## AUTHOR

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

Author.

## COPYRIGHT
