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

# BUF\_RECURSED(9)

`BUF_RECURSED` — 检查与缓冲区关联的锁是否递归

## 名称

`BUF_RECURSED`

## 概要

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

#include <sys/systm.h>

#include <sys/uio.h>

#include <sys/bio.h>

#include <sys/buf.h>

int
BUF_RECURSED(struct buf *bp)
```

## 描述

`BUF_RECURSED` 函数检查与给定缓冲区关联的锁是否递归，如果条件为真则返回 1，否则返回 0。

其参数如下：

**`bp`** 与锁关联的缓冲区。详见 lockmgr\_recursed(9)。

## 参见

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

## 作者

本手册页由 Attilio Rao <attilio@FreeBSD.org> 编写。
