1168191Sjhb/*-
2168191Sjhb * Copyright (c) 2007 Attilio Rao <attilio@freebsd.org>
3168191Sjhb * All rights reserved.
4168191Sjhb *
5168191Sjhb * Redistribution and use in source and binary forms, with or without
6168191Sjhb * modification, are permitted provided that the following conditions
7168191Sjhb * are met:
8168191Sjhb * 1. Redistributions of source code must retain the above copyright
9168191Sjhb *    notice(s), this list of conditions and the following disclaimer as
10168191Sjhb *    the first lines of this file unmodified other than the possible
11168191Sjhb *    addition of one or more copyright notices.
12168191Sjhb * 2. Redistributions in binary form must reproduce the above copyright
13168191Sjhb *    notice(s), this list of conditions and the following disclaimer in the
14168191Sjhb *    documentation and/or other materials provided with the distribution.
15168191Sjhb *
16168191Sjhb * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) ``AS IS'' AND ANY
17168191Sjhb * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18168191Sjhb * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19168191Sjhb * DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
20168191Sjhb * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21168191Sjhb * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22168191Sjhb * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23168191Sjhb * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24168191Sjhb * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25168191Sjhb * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
26168191Sjhb * DAMAGE.
27168191Sjhb *
28168191Sjhb * $FreeBSD$
29168191Sjhb */
30168191Sjhb
31168191Sjhb#ifndef	_SYS__SX_H_
32168191Sjhb#define	_SYS__SX_H_
33168191Sjhb
34168191Sjhb/*
35168191Sjhb * Shared/exclusive lock main structure definition.
36168191Sjhb */
37168191Sjhbstruct sx {
38168191Sjhb	struct lock_object	lock_object;
39168191Sjhb	volatile uintptr_t	sx_lock;
40168191Sjhb};
41168191Sjhb
42168191Sjhb#endif	/* !_SYS__SX_H_ */
43