1*7206bf49SGordon Ross /* 2*7206bf49SGordon Ross * CDDL HEADER START 3*7206bf49SGordon Ross * 4*7206bf49SGordon Ross * The contents of this file are subject to the terms of the 5*7206bf49SGordon Ross * Common Development and Distribution License, Version 1.0 only 6*7206bf49SGordon Ross * (the "License"). You may not use this file except in compliance 7*7206bf49SGordon Ross * with the License. 8*7206bf49SGordon Ross * 9*7206bf49SGordon Ross * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7206bf49SGordon Ross * or http://www.opensolaris.org/os/licensing. 11*7206bf49SGordon Ross * See the License for the specific language governing permissions 12*7206bf49SGordon Ross * and limitations under the License. 13*7206bf49SGordon Ross * 14*7206bf49SGordon Ross * When distributing Covered Code, include this CDDL HEADER in each 15*7206bf49SGordon Ross * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7206bf49SGordon Ross * If applicable, add the following below this CDDL HEADER, with the 17*7206bf49SGordon Ross * fields enclosed by brackets "[]" replaced with your own identifying 18*7206bf49SGordon Ross * information: Portions Copyright [yyyy] [name of copyright owner] 19*7206bf49SGordon Ross * 20*7206bf49SGordon Ross * CDDL HEADER END 21*7206bf49SGordon Ross */ 22*7206bf49SGordon Ross /* 23*7206bf49SGordon Ross * Copyright (c) 1991-1998 by Sun Microsystems, Inc. 24*7206bf49SGordon Ross * All rights reserved. 25*7206bf49SGordon Ross * 26*7206bf49SGordon Ross * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 27*7206bf49SGordon Ross */ 28*7206bf49SGordon Ross 29*7206bf49SGordon Ross /* 30*7206bf49SGordon Ross * t_lock.h: Prototypes for disp_locks, plus include files 31*7206bf49SGordon Ross * that describe the interfaces to kernel synch. 32*7206bf49SGordon Ross * objects. 33*7206bf49SGordon Ross */ 34*7206bf49SGordon Ross 35*7206bf49SGordon Ross #ifndef _SYS_T_LOCK_H 36*7206bf49SGordon Ross #define _SYS_T_LOCK_H 37*7206bf49SGordon Ross 38*7206bf49SGordon Ross /* these two are real */ 39*7206bf49SGordon Ross #include <sys/machlock.h> 40*7206bf49SGordon Ross #include <sys/param.h> 41*7206bf49SGordon Ross 42*7206bf49SGordon Ross /* the rest are fake */ 43*7206bf49SGordon Ross #include <sys/mutex.h> 44*7206bf49SGordon Ross #include <sys/rwlock.h> 45*7206bf49SGordon Ross #include <sys/semaphore.h> 46*7206bf49SGordon Ross #include <sys/condvar.h> 47*7206bf49SGordon Ross 48*7206bf49SGordon Ross /* 49*7206bf49SGordon Ross * The real sys/semaphore.h pulls in sys/thread and some headers 50*7206bf49SGordon Ross * using sys/t_lock.h rely on that, so let's pull it in here too. 51*7206bf49SGordon Ross * Note that sys/thread.h includes sys/t_lock.h too (a cycle) but 52*7206bf49SGordon Ross * that's OK thanks to the multi-include guards. 53*7206bf49SGordon Ross */ 54*7206bf49SGordon Ross #if defined(_KERNEL) || defined(_FAKE_KERNEL) 55*7206bf49SGordon Ross #include <sys/thread.h> 56*7206bf49SGordon Ross #endif 57*7206bf49SGordon Ross 58*7206bf49SGordon Ross #endif /* _SYS_T_LOCK_H */ 59