diff options
author | Rob Johnston <rob.johnston@joyent.com> | 2018-06-06 21:24:18 -0700 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2018-06-28 22:44:13 +0000 |
commit | ea30102ce458697473b0435bcdc7647dce2551f4 (patch) | |
tree | a0e74fd0c0b7029d01d233762f0ff98a4eaae39e /usr/src/lib/libipmi/common/libipmi.h | |
parent | 4e0c5eff9af325c80994e9527b7cb8b3a1ffd1d4 (diff) | |
download | illumos-gate-ea30102ce458697473b0435bcdc7647dce2551f4.tar.gz |
9586 need to handle SP's that present multiple sensors with the same entity name
9587 Add test mechanism to sensor-transport module for spoofing sensor states
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/lib/libipmi/common/libipmi.h')
-rw-r--r-- | usr/src/lib/libipmi/common/libipmi.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/src/lib/libipmi/common/libipmi.h b/usr/src/lib/libipmi/common/libipmi.h index 92a43c6758..1e69e57854 100644 --- a/usr/src/lib/libipmi/common/libipmi.h +++ b/usr/src/lib/libipmi/common/libipmi.h @@ -1522,10 +1522,13 @@ extern int ipmi_sdr_iter(ipmi_handle_t *, int (*)(ipmi_handle_t *, const char *, ipmi_sdr_t *, void *), void *); /* - * Lookup the given sensor type by name. These functions automatically read in - * and cache the complete SDR repository. + * Lookup the given sensor type by name or a combination of name and entity + * ID/instance. These functions automatically read in and cache the complete + * SDR repository. */ extern ipmi_sdr_t *ipmi_sdr_lookup(ipmi_handle_t *, const char *); +extern ipmi_sdr_t *ipmi_sdr_lookup_precise(ipmi_handle_t *, const char *, + uint8_t, uint8_t); extern ipmi_sdr_fru_locator_t *ipmi_sdr_lookup_fru(ipmi_handle_t *, const char *); extern ipmi_sdr_generic_locator_t *ipmi_sdr_lookup_generic(ipmi_handle_t *, |