summaryrefslogtreecommitdiffstats
path: root/share/man
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2001-03-29 10:06:50 +0000
committerbde <bde@FreeBSD.org>2001-03-29 10:06:50 +0000
commit4c29931b6c818e14847c7f257666594f834b9e10 (patch)
tree435a193a607b239ca9d950a59cdaaf1bfba7021c /share/man
parent5fb024dfe1d6646bf928ec35030aa57bd336dec7 (diff)
downloadFreeBSD-src-4c29931b6c818e14847c7f257666594f834b9e10.zip
FreeBSD-src-4c29931b6c818e14847c7f257666594f834b9e10.tar.gz
Fixed wrong include in synopsis. <sys/param.h> is a prerequisite for
<sys/mutex.h> due to #include spam in <sys/mutex.h>. (More precisely, <sys/time.h> is the prerequisite, but that is provided by standard #include spam in <sys/param.h>.) Fixed bitrot in prototype for mtx_init().
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man9/mutex.910
1 files changed, 5 insertions, 5 deletions
diff --git a/share/man/man9/mutex.9 b/share/man/man9/mutex.9
index fe0ac36..571f82e 100644
--- a/share/man/man9/mutex.9
+++ b/share/man/man9/mutex.9
@@ -50,11 +50,11 @@
.Nm mtx_assert
.Nd kernel synchronization primitives
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
+.Fd #include <sys/param.h>
.Fd #include <sys/lock.h>
.Fd #include <sys/mutex.h>
-.Ft int
-.Fn mtx_init "struct mtx *mutex" "char *name" "int opts"
+.Ft void
+.Fn mtx_init "struct mtx *mutex" "const char *description" "int opts"
.Ft void
.Fn mtx_lock "struct mtx *mutex"
.Ft void
@@ -139,11 +139,11 @@ function must be used to initialize a mutex
before it can be passed to
.Fn mtx_lock .
The
-.Fa name
+.Fa description
argument is used by the witness code
to classify a mutex when doing checks of lock ordering.
The pointer passed in as the
-.Fa name
+.Fa description
is saved rather than the data it points to.
The data pointed to must remain stable
until the mutex is destroyed.
OpenPOWER on IntegriCloud