diff --git a/share/man/man9/lock.9 b/share/man/man9/lock.9 index 23567c5e4c8d..f92ad8388345 100644 --- a/share/man/man9/lock.9 +++ b/share/man/man9/lock.9 @@ -1,6 +1,6 @@ -.\" $NetBSD: lock.9,v 1.23 2004/10/04 19:12:52 rumble Exp $ +.\" $NetBSD: lock.9,v 1.24 2007/02/11 16:05:08 ad Exp $ .\" -.\" Copyright (c) 2000 The NetBSD Foundation, Inc. +.\" Copyright (c) 2000, 2007 The NetBSD Foundation, Inc. .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -31,7 +31,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd May 25, 2004 +.Dd Febuary 11, 2007 .Dt LOCK 9 .Os .Sh NAME @@ -80,6 +80,16 @@ .Ft int .Fn spinlockmgr "struct lock *lock" "u_int flags" "struct simplelock *slock" .Sh DESCRIPTION +.Sy The interfaces described in this manual page are obsolete +.Sy and will be removed from a future version of the system. +.Pp +.Sy Please see the +.Xr condvar 9 , +.Xr mutex 9 , +.Sy and +.Sy Xr rwlock 9 +.Sy manual pages for information on kernel synchronisation primitives. +.Pp The .Nm functions provide synchronisation in the kernel by preventing multiple @@ -385,7 +395,10 @@ Machine-dependent simplelock primitives are implemented within the file .Pa sys/arch/\*[Lt]arch\*[Gt]/include/lock.h . .Sh SEE ALSO +.Xr condvar 9 , +.Xr mutex 9 , .Xr pmap 9 , +.Xr rwlock 9, .Xr spl 9 , .Xr tsleep 9 , .Xr uvm 9 diff --git a/share/man/man9/ltsleep.9 b/share/man/man9/ltsleep.9 index 6b65e36a71c7..9d5a2e0546c2 100644 --- a/share/man/man9/ltsleep.9 +++ b/share/man/man9/ltsleep.9 @@ -1,6 +1,6 @@ -.\" $NetBSD: ltsleep.9,v 1.7 2005/12/24 21:27:22 perry Exp $ +.\" $NetBSD: ltsleep.9,v 1.8 2007/02/11 16:05:08 ad Exp $ .\" -.\" Copyright (c) 1996, 2002 The NetBSD Foundation, Inc. +.\" Copyright (c) 1996, 2002, 2007 The NetBSD Foundation, Inc. .\" All rights reserved. .\" .\" This code is derived from software contributed to The NetBSD Foundation @@ -34,7 +34,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd December 24, 2005 +.Dd February 11, 2007 .Dt LTSLEEP 9 .Os .Sh NAME @@ -51,6 +51,16 @@ .Ft void .Fn "wakeup" "const void *ident" .Sh DESCRIPTION +.Sy The interfaces described in this manual page are obsolete +.Sy and will be removed from a future version of the system. +.Pp +.Sy Please see the +.Xr condvar 9 , +.Xr mutex 9 , +.Sy and +.Sy Xr rwlock 9 +.Sy manual pages for information on kernel synchronisation primitives. +.Pp These functions implement voluntary context switching. .Fn ltsleep and @@ -189,8 +199,11 @@ returns because of a timeout it returns .Er EWOULDBLOCK . .Sh SEE ALSO .Xr sigaction 2 , +.Xr condvar 9 , .Xr hz 9 , -.Xr lock 9 +.Xr lock 9 , +.Xr mutex 9 , +.Xr rwlock 9 .Sh HISTORY The sleep/wakeup process synchronization mechanism is very old. It appeared in a very early version of Unix.