Add lockmgr_disown() and relative explanation.
This commit is contained in:
parent
f0eca36d0b
commit
bb203b2edf
@ -26,7 +26,7 @@
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd December 27, 2007
|
||||
.Dd January 09, 2008
|
||||
.Dt LOCK 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -35,6 +35,7 @@
|
||||
.Nm lockcount ,
|
||||
.Nm lockmgr ,
|
||||
.Nm lockstatus ,
|
||||
.Nm lockmgr_disown ,
|
||||
.Nm lockmgr_printinfo
|
||||
.Nd "lockmgr family of functions"
|
||||
.Sh SYNOPSIS
|
||||
@ -51,6 +52,8 @@
|
||||
.Ft int
|
||||
.Fn lockstatus "struct lock *lkp" "struct thread *td"
|
||||
.Ft void
|
||||
.Fn lockmgr_disown "struct lock *lkp"
|
||||
.Ft void
|
||||
.Fn lockmgr_printinfo "struct lock *lkp"
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
@ -187,6 +190,12 @@ and an exclusive lock is held,
|
||||
will be returned.
|
||||
.Pp
|
||||
The
|
||||
.Fn lockmgr_disown
|
||||
function switch the owner from curthread to be
|
||||
.Dv LK_KERNPROC,
|
||||
if the lock is alredy held.
|
||||
.Pp
|
||||
The
|
||||
.Fn lockmgr_printinfo
|
||||
function prints debugging information about the lock.
|
||||
It is used primarily by
|
||||
|
Loading…
Reference in New Issue
Block a user