xref: /illumos-gate/usr/src/uts/common/fs/zfs/sys/zfs_context.h (revision 4de2612967d06c4fdbf524a62556a1e8118a006f)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef _SYS_ZFS_CONTEXT_H
28 #define	_SYS_ZFS_CONTEXT_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 #include <sys/note.h>
37 #include <sys/types.h>
38 #include <sys/t_lock.h>
39 #include <sys/atomic.h>
40 #include <sys/sysmacros.h>
41 #include <sys/bitmap.h>
42 #include <sys/cmn_err.h>
43 #include <sys/kmem.h>
44 #include <sys/taskq.h>
45 #include <sys/buf.h>
46 #include <sys/param.h>
47 #include <sys/systm.h>
48 #include <sys/cpuvar.h>
49 #include <sys/kobj.h>
50 #include <sys/conf.h>
51 #include <sys/disp.h>
52 #include <sys/debug.h>
53 #include <sys/random.h>
54 #include <sys/byteorder.h>
55 #include <sys/systm.h>
56 #include <sys/list.h>
57 #include <sys/uio.h>
58 #include <sys/dirent.h>
59 #include <sys/time.h>
60 #include <vm/seg_kmem.h>
61 #include <sys/zone.h>
62 #include <sys/uio.h>
63 #include <sys/zfs_debug.h>
64 
65 #define	CPU_SEQID	(CPU->cpu_seqid)
66 
67 #ifdef	__cplusplus
68 }
69 #endif
70 
71 #endif	/* _SYS_ZFS_CONTEXT_H */
72