---
name: "BUF_LOCKFREE"
section: "9"
platform: "linux"
package: "freebsd-manpages"
version: "6.0-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/BUF_LOCKFREE"
---

# BUF\_LOCKFREE(9)

destroys a buffer's lock

## NAME

**BUF\_LOCKFREE** – destroys a buffer's lock

## SYNOPSIS

**#include \<sys/param.h\>**

**#include \<sys/systm.h\>**

**#include \<sys/uio.h\>**

**#include \<sys/bio.h\>**

**#include \<sys/buf.h\>**

*void*\

**BUF\_LOCKFREE**(*struct buf \*bp*);

## DESCRIPTION

The **BUF\_LOCKFREE**() macro destroys the buffer lock. The lock must not be held when this macro is called or a panic will result.

Its argument is:

- *bp*

  The buffer whose lock is to be destroyed.

## SEE ALSO

[buf(9)](/buf/9.md), [BUF\_LOCK(9)](/BUF_LOCK/9.md), [BUF\_TIMELOCK(9)](/BUF_TIMELOCK/9.md), [BUF\_UNLOCK(9)](/BUF_UNLOCK/9.md), [lockdestroy(9)](/lockdestroy/9.md)

## AUTHORS

This manual page was written by Chad David ⟨davidc@acns.ab.ca⟩.
