> 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_lockinit.9.md).

# BUF\_LOCKINIT(9)

`BUF_LOCKINIT` — 初始化缓冲区锁

## 名称

`BUF_LOCKINIT`

## 概要

```c
#include <sys/param.h>

#include <sys/systm.h>

#include <sys/uio.h>

#include <sys/bio.h>

#include <sys/buf.h>

void
BUF_LOCKINIT(struct buf *bp)
```

## 描述

`BUF_LOCKINIT` 宏初始化缓冲区锁。

其参数如下：

**`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), lockinit(9), lockmgr(9)

## 作者

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