176166Smarkm/*- 276166Smarkm * Copyright (c) 1997 Berkeley Software Design, Inc. All rights reserved. 376166Smarkm * 476166Smarkm * Redistribution and use in source and binary forms, with or without 576166Smarkm * modification, are permitted provided that the following conditions 676166Smarkm * are met: 776166Smarkm * 1. Redistributions of source code must retain the above copyright 876166Smarkm * notice, this list of conditions and the following disclaimer. 976166Smarkm * 2. Redistributions in binary form must reproduce the above copyright 1076166Smarkm * notice, this list of conditions and the following disclaimer in the 1176166Smarkm * documentation and/or other materials provided with the distribution. 1276166Smarkm * 3. Berkeley Software Design Inc's name may not be used to endorse or 1376166Smarkm * promote products derived from this software without specific prior 1476166Smarkm * written permission. 1576166Smarkm * 1676166Smarkm * THIS SOFTWARE IS PROVIDED BY BERKELEY SOFTWARE DESIGN INC ``AS IS'' AND 1776166Smarkm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1876166Smarkm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1976166Smarkm * ARE DISCLAIMED. IN NO EVENT SHALL BERKELEY SOFTWARE DESIGN INC BE LIABLE 2076166Smarkm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2176166Smarkm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2276166Smarkm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2376166Smarkm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2476166Smarkm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2576166Smarkm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2676166Smarkm * SUCH DAMAGE. 2776166Smarkm * 2876166Smarkm * $FreeBSD$ 2976166Smarkm */ 3076166Smarkm 3198016Sbde#ifndef _SYS__LOCK_H_ 3298016Sbde#define _SYS__LOCK_H_ 3376166Smarkm 3483045Sobrienstruct lock_object { 3593811Sjhb const char *lo_name; /* Individual lock name. */ 3676166Smarkm u_int lo_flags; 37179025Sattilio u_int lo_data; /* General class specific data. */ 38179025Sattilio struct witness *lo_witness; /* Data for witness. */ 3976166Smarkm}; 4076166Smarkm 4198016Sbde#endif /* !_SYS__LOCK_H_ */ 42