X hits on this document

PDF document

February 10, 2006 - page 209 / 238

701 views

0 shares

0 downloads

0 comments

209 / 238

printf("ipmi_states_get returned error 0x%x for sensor %s\n", rv, sdata->name); release_sdata(sdata);

}

}

/* Set up events. */ s d a t a - > s t a t e _ s u p = i p m i _ s e n s o r _ g e t _ e v e n t _ s u p p o r t ( s e n s o r switch (sdata->state_sup) { case IPMI_EVENT_SUPPORT_NONE: case IPMI_EVENT_SUPPORT_GLOBAL_ENABLE: /* No events to set up. */ printf("Sensor %s has no event support\n", sdata->name); goto get_thresh; ) ;

}

use_sdata(sdata); rv = ipmi_sensor_get_event_enables(sensor, got_events, sdata); if (rv) { p r i n t f ( " i p m i _ s e n s o r _ e v e n t s _ e n a b l e _ g e t r e t u r n e d e r r o r 0 x % x " for sensor %s\n", rv, sdata->name); release_sdata(sdata); "

}

g e t _ t h r e s h /* Handle the threshold settings. */ :

if (ipmi_sensor_get_event_reading_type(sensor) != IPMI_EVENT_READING_TYPE_THRESHOLD) /* Thresholds only for threshold sensors (duh) */ goto out;

s d a t a - > t h r e s h _ s u p = i p m i _ s e n s o r _ g e t _ t h r e s h o l d _ a c c e s s ( s e n s o r ) ;

switch (sdata->thresh_sup) { case IPMI_THRESHOLD_ACCESS_SUPPORT_NONE:

printf("Sensor %s has no threshold support\n", sdata->name); goto out;

case IPMI_THRESHOLD_ACCESS_SUPPORT_FIXED: printf("Sensor %s has fixed threshold support\n", sdata->name); goto out;

}

197

Document info
Document views701
Page views701
Page last viewedSat Dec 10 00:50:10 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments