aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2001-03-29 10:06:50 +0000
committerBruce Evans <bde@FreeBSD.org>2001-03-29 10:06:50 +0000
commit16bef91c0a40b5191a6c4560f3e8d9c382efde0f (patch)
treed89fd5a43541fde351370ea83b88e19c353cf4e1 /share
parent0b8b714fa9d9c9abae99fa4a0f44ba67a318bc0e (diff)
downloadsrc-16bef91c0a40b5191a6c4560f3e8d9c382efde0f.tar.gz
src-16bef91c0a40b5191a6c4560f3e8d9c382efde0f.zip
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().
Notes
Notes: svn path=/head/; revision=74982
Diffstat (limited to 'share')
-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 fe0ac36b77ee..571f82eced6f 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.