xref: /f-stack/tools/compat/include/sys/_lock.h (revision 1eaf0ac3)
1*1eaf0ac3Slogwang /*-
2*1eaf0ac3Slogwang  * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved.
3*1eaf0ac3Slogwang  *
4*1eaf0ac3Slogwang  * Redistribution and use in source and binary forms, with or without
5*1eaf0ac3Slogwang  * modification, are permitted provided that the following conditions
6*1eaf0ac3Slogwang  * are met:
7*1eaf0ac3Slogwang  * 1. Redistributions of source code must retain the above copyright
8*1eaf0ac3Slogwang  *    notice, this list of conditions and the following disclaimer.
9*1eaf0ac3Slogwang  * 2. Redistributions in binary form must reproduce the above copyright
10*1eaf0ac3Slogwang  *    notice, this list of conditions and the following disclaimer in the
11*1eaf0ac3Slogwang  *    documentation and/or other materials provided with the distribution.
12*1eaf0ac3Slogwang  * 3. Berkeley Software Design Inc's name may not be used to endorse or
13*1eaf0ac3Slogwang  *    promote products derived from this software without specific prior
14*1eaf0ac3Slogwang  *    written permission.
15*1eaf0ac3Slogwang  *
16*1eaf0ac3Slogwang  * THIS SOFTWARE IS PROVIDED BY BERKELEY SOFTWARE DESIGN INC ``AS IS'' AND
17*1eaf0ac3Slogwang  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18*1eaf0ac3Slogwang  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19*1eaf0ac3Slogwang  * ARE DISCLAIMED.  IN NO EVENT SHALL BERKELEY SOFTWARE DESIGN INC BE LIABLE
20*1eaf0ac3Slogwang  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21*1eaf0ac3Slogwang  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22*1eaf0ac3Slogwang  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23*1eaf0ac3Slogwang  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24*1eaf0ac3Slogwang  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25*1eaf0ac3Slogwang  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26*1eaf0ac3Slogwang  * SUCH DAMAGE.
27*1eaf0ac3Slogwang  *
28*1eaf0ac3Slogwang  * $FreeBSD$
29*1eaf0ac3Slogwang  */
30*1eaf0ac3Slogwang 
31*1eaf0ac3Slogwang #ifndef _SYS__LOCK_H_
32*1eaf0ac3Slogwang #define	_SYS__LOCK_H_
33*1eaf0ac3Slogwang 
34*1eaf0ac3Slogwang struct lock_object {
35*1eaf0ac3Slogwang 	const	char *lo_name;		/* Individual lock name. */
36*1eaf0ac3Slogwang 	u_int	lo_flags;
37*1eaf0ac3Slogwang 	u_int	lo_data;		/* General class specific data. */
38*1eaf0ac3Slogwang 	struct	witness *lo_witness;	/* Data for witness. */
39*1eaf0ac3Slogwang };
40*1eaf0ac3Slogwang 
41*1eaf0ac3Slogwang #endif /* !_SYS__LOCK_H_ */
42