xref: /netbsd-src/share/man/man9/lock.9 (revision 11a6dbe72840351315e0652b2fc6663628c84cad)
1.\"     $NetBSD: lock.9,v 1.29 2008/04/30 13:10:58 martin Exp $
2.\"
3.\" Copyright (c) 2000, 2007, 2008 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\"
15.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
16.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25.\" POSSIBILITY OF SUCH DAMAGE.
26.\"
27.Dd January 30, 2008
28.Dt LOCK 9
29.Os
30.Sh NAME
31.Nm lock ,
32.Nm simple_lock_init ,
33.Nm simple_lock ,
34.Nm simple_lock_try ,
35.Nm simple_unlock ,
36.Nm simple_lock_freecheck ,
37.Nm simple_lock_dump ,
38.Nm lockinit ,
39.Nm lockmgr ,
40.Nm lockstatus ,
41.Nm lockmgr_printinfo ,
42.Nm spinlockinit ,
43.Nm spinlockmgr
44.Nd kernel lock functions
45.Sh DESCRIPTION
46These interfaces have been obsoleted and removed from the system.
47.Pp
48Please see the
49.Xr condvar 9 ,
50.Xr mutex 9 ,
51and
52.Xr rwlock 9
53manual pages for information on kernel synchronisation primitives.
54.Sh SEE ALSO
55.Xr condvar 9 ,
56.Xr mutex 9 ,
57.Xr rwlock 9
58.Sh HISTORY
59The kernel locking API first appeared in
60.Bx 4.4 Ns -lite2 ,
61and was replaced in
62.Nx 5.0 .
63