From 16bef91c0a40b5191a6c4560f3e8d9c382efde0f Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Thu, 29 Mar 2001 10:06:50 +0000 Subject: [PATCH] Fixed wrong include in synopsis. is a prerequisite for due to #include spam in . (More precisely, is the prerequisite, but that is provided by standard #include spam in .) Fixed bitrot in prototype for mtx_init(). --- share/man/man9/mutex.9 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/man/man9/mutex.9 b/share/man/man9/mutex.9 index fe0ac36b77e..571f82eced6 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 +.Fd #include .Fd #include .Fd #include -.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.