xref: /freebsd/share/man/man9/BUF_RECURSED.9 (revision 95eb4b873b6a8b527c5bd78d7191975dfca38998)
1.\"
2.\" Copyright (C) 2008 Attilio Rao <attilio@FreeBSD.org>
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\"    notice(s), this list of conditions and the following disclaimer as
10.\"    the first lines of this file unmodified other than the possible
11.\"    addition of one or more copyright notices.
12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\"    notice(s), this list of conditions and the following disclaimer in the
14.\"    documentation and/or other materials provided with the distribution.
15.\"
16.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) ``AS IS'' AND ANY
17.\" EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19.\" DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
20.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
26.\" DAMAGE.
27.\"
28.Dd January 22, 2008
29.Dt BUF_RECURSED 9
30.Os
31.Sh NAME
32.Nm BUF_RECURSED
33.Nd "checks if the lock linked to the buffer is recursed"
34.Sh SYNOPSIS
35.In sys/param.h
36.In sys/systm.h
37.In sys/uio.h
38.In sys/bio.h
39.In sys/buf.h
40.Ft int
41.Fn BUF_RECURSED "struct buf *bp"
42.Sh DESCRIPTION
43The
44.Fn BUF_RECURSED
45function checks if the lock linked to the given buffer is recursed and
46returns 1 if the condition is true, 0 otherwise.
47.Pp
48Its argument is:
49.Bl -tag -width ".Fa bp"
50.It Fa bp
51The buffer linked to the lock.
52See
53.Xr lockmgr_recursed 9
54for details.
55.El
56.Sh SEE ALSO
57.Xr buf 9 ,
58.Xr BUF_LOCK 9 ,
59.Xr BUF_UNLOCK 9 ,
60.Xr lockmgr 9
61.Sh AUTHORS
62This manual page was written by
63.An Attilio Rao Aq Mt attilio@FreeBSD.org .
64