From df59f81f5b806f55494ce51b938b537ec94fbb52 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Mon, 26 Jul 2010 04:24:31 +0200 Subject: [PATCH] lock.9: Mention lockuninit(). --- share/man/man9/Makefile | 3 ++- share/man/man9/lock.9 | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index 05a92be339..98ed3a6210 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -547,7 +547,8 @@ MLINKS+=lock.9 lockcount.9 \ lock.9 lockinit.9 \ lock.9 lockmgr.9 \ lock.9 lockmgr_printinfo.9 \ - lock.9 lockstatus.9 + lock.9 lockstatus.9 \ + lock.9 lockuninit.9 MLINKS+=lwbuf.9 lwbuf_alloc.9 \ lwbuf.9 lwbuf_free.9 \ lwbuf.9 lwbuf_kva.9 \ diff --git a/share/man/man9/lock.9 b/share/man/man9/lock.9 index f1cbd7b64a..1e9806318b 100644 --- a/share/man/man9/lock.9 +++ b/share/man/man9/lock.9 @@ -26,7 +26,7 @@ .\" .\" $FreeBSD: src/share/man/man9/lock.9,v 1.11 2003/09/08 19:57:21 ru Exp $ .\" -.Dd April 10, 2010 +.Dd July 26, 2010 .Dt LOCK 9 .Os .Sh NAME @@ -41,6 +41,8 @@ .In sys/lock.h .Ft void .Fn lockinit "struct lock *lkp" "char *wmesg" "int timo" "int flags" +.Ft void +.Fn lockuninit "struct lock *lkp" .Ft int .Fn lockcount "struct lock *lkp" .Ft int @@ -84,6 +86,11 @@ during a sleep; otherwise, 0 is used. .El .Pp The +.Fn lockuninit +function destroys a lock that was previously initialized using +.Fn lockinit . +.Pp +The .Fn lockcount function returns a count of the number of exclusive locks and shared locks held against the lock -- 2.41.0