|
|
1.1 root 1: #ifndef __KERNEL__LOCK_H__
2: #define __KERNEL__LOCK_H__
3:
4: /*
5: * This internal header file is intended as the sole point of definition for
6: * the internal data type "__lock_t", exactly equivalent to the basic lock
7: * type "lock_t", but given an internal name so that header files may refer to
8: * this type without exporting the type name into the user's namespace.
9: */
10:
11: typedef struct __basic_lock __lock_t;
12:
13:
14: /*
15: * Range of valid lock hierarchy values. Since DDI/DKI library routines often
16: * need locks of their own, we also define hierarchy values here that are
17: * suitable for those other operations and which are greater than any
18: * hierarchy value we will permit a driver.
19: *
20: * The hierarchy range is here because it is fixed, and because it may be
21: * convenient to use the following definitions as the basis of other
22: * definitions within kernel headers without importing <sys/ksynch.h>
23: *
24: * Note that the maximum values are inclusive.
25: */
26:
27: enum {
28: __MIN_HIERARCHY__ = 1,
29: __MAX_DDI_HIERARCHY__ = 32,
30: __MAX_HIERARCHY__ = 40
31: };
32:
33:
34: /*
35: * The official DDI/DKI type of a lock hierarchy value is "unsigned char". To
36: * make things clearer in function prototypes, we define our own internal type
37: * for lock hierarchy values.
38: */
39:
40: typedef unsigned char __lkhier_t;
41:
42: #endif /* ! defined (__KERNEL__LOCK_H__) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.