> For the complete documentation index, see [llms.txt](https://man.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://man.bsdcn.org/man9/buf_lockfree.9.md).

# BUF\_LOCKFREE(9)

`BUF_LOCKFREE` — 销毁缓冲区的锁

## 名称

`BUF_LOCKFREE`

## 概要

```c
#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)
```

## 描述

`BUF_LOCKFREE` 宏销毁缓冲区锁。调用此宏时不能持有锁，否则将导致 panic。

其参数如下：

**`bp`** 要销毁其锁的缓冲区。

## 参见

[buf(9)](/man9/buf.9.md), [BUF\_LOCK(9)](/man9/buf_lock.9.md), [BUF\_TIMELOCK(9)](/man9/buf_timelock.9.md), [BUF\_UNLOCK(9)](/man9/buf_unlock.9.md), lockdestroy(9)

## 作者

本手册页由 Chad David <davidc@acns.ab.ca> 编写。
