diff options
| author | cth <none@none> | 2008-07-30 10:30:05 -0700 |
|---|---|---|
| committer | cth <none@none> | 2008-07-30 10:30:05 -0700 |
| commit | b9ccdc5a0f0a722ae408b257a831b90011369316 (patch) | |
| tree | 270c4af8f4db077f69e1a5160f17bdd1d0884756 /usr/src/uts/common/sys/devinfo_impl.h | |
| parent | 945a353f89a55e9591f2aefc0cf7a23800b354be (diff) | |
| download | illumos-joyent-b9ccdc5a0f0a722ae408b257a831b90011369316.tar.gz | |
PSARC/2008/412 Properties and Devinfo Snapshots
5034258 device size should be available in devinfo snapshots that request properties
5100405 Deadlock can occur due to the devinfo driver holding devi_lock
6276452 ddi_append_minor_node() and ddi_remove_minor_node() use the extra code to protect the critical code.
6588656 ddi_prop_op_size() should not check callers *lengthp on PROP_LEN_AND_VAL_ALLOC call
6720361 missing locks on devi_minor list traversal
6729639 scsi_hba code should not use DDI_MAJOR_T_UNKNOWN for properties
Diffstat (limited to 'usr/src/uts/common/sys/devinfo_impl.h')
| -rw-r--r-- | usr/src/uts/common/sys/devinfo_impl.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/usr/src/uts/common/sys/devinfo_impl.h b/usr/src/uts/common/sys/devinfo_impl.h index 5cc9705bad..bcc4787d48 100644 --- a/usr/src/uts/common/sys/devinfo_impl.h +++ b/usr/src/uts/common/sys/devinfo_impl.h @@ -118,15 +118,7 @@ extern "C" { #define DI_DEVNM(addr) ((struct di_devnm *)((void *)(addr))) #define DI_LINK(addr) ((struct di_link *)((void *)(addr))) #define DI_LNODE(addr) ((struct di_lnode *)((void *)(addr))) - -/* - * For compatibility only - */ -#define DINO(addr) DI_NODE(addr) -#define DIMI(addr) DI_MINOR(addr) -#define DIPROP(addr) DI_PROP(addr) -#define DIPATH(addr) DI_PATH(addr) -#define DIPATHPROP(addr) DI_PATHPROP(addr) +#define DI_PRIV_FORMAT(addr) ((struct di_priv_format *)((void *)(addr))) /* * multipath component definitions: Follows the registered component of @@ -360,9 +352,9 @@ struct di_prop { di_off_t prop_data; /* property data */ major_t dev_major; /* dev_t can be 64 bit */ minor_t dev_minor; - int prop_flags; /* mark prop value types & more */ - int prop_len; /* prop length in bytes (boolean if 0) */ - int prop_list; /* which list (DI_PROP_SYS_LIST), etc */ + int prop_flags; /* mark prop value types & more */ + int prop_len; /* prop len in bytes (boolean if 0) */ + int prop_list; /* which list (DI_PROP_SYS_LIST), etc */ }; /* |
