diff options
author | robj <none@none> | 2008-07-31 17:35:39 -0700 |
---|---|---|
committer | robj <none@none> | 2008-07-31 17:35:39 -0700 |
commit | 825ba0f20a74fd9c5d0d1ce2c195da2cc88a7f77 (patch) | |
tree | 96f964ef7747dc494f62cde1ea099168464a1dd1 /usr/src/uts/common | |
parent | 3eceedbb4b7e889e84a21828cc72ca79007828f3 (diff) | |
download | illumos-joyent-825ba0f20a74fd9c5d0d1ce2c195da2cc88a7f77.tar.gz |
PSARC 2008/428 Extending libnvpair for type double
PSARC 2008/463 Extending HC FMRI scheme to represent sensors/indicators
6579615 fmtopo -e has lots of memory leaks
6635159 libtopo: extend hc scheme to allow for representing sensors and indicators in the topology
6692392 fmtopo -x doesn't handle property methods properly
6718703 Need to extend libnvpair to support type double
6718712 libtopo: Need to implement facility provider module for IPMI
6722594 libtopo: the topo_prop_set_* interfaces need to learn to play well with propmethods
6727190 libtopo: add support for node properties of type double
6727459 libipmi: need interface to convert raw sensor readings to unit-based values
6727470 libipmi: need convenience routine to convert sensor unit defines to string
6729595 libtopo: add <set> case in fan and psu xml maps for SUN-FIRE-X4600-M2
6732318 fmd: small leak in sysevent modelling code
Diffstat (limited to 'usr/src/uts/common')
-rw-r--r-- | usr/src/uts/common/sys/fm/protocol.h | 5 | ||||
-rw-r--r-- | usr/src/uts/common/sys/nvpair.h | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/usr/src/uts/common/sys/fm/protocol.h b/usr/src/uts/common/sys/fm/protocol.h index 963474a5a2..4c65506f4b 100644 --- a/usr/src/uts/common/sys/fm/protocol.h +++ b/usr/src/uts/common/sys/fm/protocol.h @@ -153,6 +153,7 @@ extern "C" { #define FM_FMRI_AUTHORITY "authority" #define FM_FMRI_SCHEME "scheme" #define FM_FMRI_SVC_AUTHORITY "svc-authority" +#define FM_FMRI_FACILITY "facility" /* FMRI authority-type member names */ #define FM_FMRI_AUTH_CHASSIS "chassis-id" @@ -206,6 +207,10 @@ extern "C" { #define FM_FMRI_HC_LIST "hc-list" #define FM_FMRI_HC_SPECIFIC "hc-specific" +/* facility member names */ +#define FM_FMRI_FACILITY_NAME "facility-name" +#define FM_FMRI_FACILITY_TYPE "facility-type" + /* hc-list version and member names */ #define FM_FMRI_HC_NAME "hc-name" #define FM_FMRI_HC_ID "hc-id" diff --git a/usr/src/uts/common/sys/nvpair.h b/usr/src/uts/common/sys/nvpair.h index 701b8370a2..9e768541f2 100644 --- a/usr/src/uts/common/sys/nvpair.h +++ b/usr/src/uts/common/sys/nvpair.h @@ -67,7 +67,12 @@ typedef enum { DATA_TYPE_UINT8, DATA_TYPE_BOOLEAN_ARRAY, DATA_TYPE_INT8_ARRAY, +#if !defined(_KERNEL) + DATA_TYPE_UINT8_ARRAY, + DATA_TYPE_DOUBLE +#else DATA_TYPE_UINT8_ARRAY +#endif } data_type_t; typedef struct nvpair { @@ -188,6 +193,9 @@ int nvlist_add_uint64_array(nvlist_t *, const char *, uint64_t *, uint_t); int nvlist_add_string_array(nvlist_t *, const char *, char *const *, uint_t); int nvlist_add_nvlist_array(nvlist_t *, const char *, nvlist_t **, uint_t); int nvlist_add_hrtime(nvlist_t *, const char *, hrtime_t); +#if !defined(_KERNEL) +int nvlist_add_double(nvlist_t *, const char *, double); +#endif int nvlist_remove(nvlist_t *, const char *, data_type_t); int nvlist_remove_all(nvlist_t *, const char *); @@ -221,6 +229,9 @@ int nvlist_lookup_nvlist_array(nvlist_t *, const char *, nvlist_t ***, uint_t *); int nvlist_lookup_hrtime(nvlist_t *, const char *, hrtime_t *); int nvlist_lookup_pairs(nvlist_t *, int, ...); +#if !defined(_KERNEL) +int nvlist_lookup_double(nvlist_t *, const char *, double *); +#endif int nvlist_lookup_nvpair(nvlist_t *, const char *, nvpair_t **); int nvlist_lookup_nvpair_embedded_index(nvlist_t *, const char *, nvpair_t **, @@ -257,6 +268,9 @@ int nvpair_value_uint64_array(nvpair_t *, uint64_t **, uint_t *); int nvpair_value_string_array(nvpair_t *, char ***, uint_t *); int nvpair_value_nvlist_array(nvpair_t *, nvlist_t ***, uint_t *); int nvpair_value_hrtime(nvpair_t *, hrtime_t *); +#if !defined(_KERNEL) +int nvpair_value_double(nvpair_t *, double *); +#endif #ifdef __cplusplus } |