X hits on this document

PDF document

February 10, 2006 - page 203 / 238

880 views

0 shares

0 downloads

0 comments

203 / 238

g o t _ d i s c r e t e _ s t a t e s ( i p m i _ s e n s o r _ t * s e n int err, s o r , i p m i _ s t a t e s _ t * s t a t e s ,

void

* c b _ d a t a )

{

s d a t a _ t * s d a t a = c b _ d a t a ;

int

i;

if (err) {

printf("Error 0x%x getting discrete states for sensor %s\n", err, sdata->name); goto out;

}

if (err) { printf("Error 0x%x getting discrete states for sensor %s\n", err, sdata->name); goto out;

}

printf("Got state reading for sensor %s\n", sdata->name); if (ipmi_is_event_messages_enabled(states))

printf("

event

messages

enabled\n");

if

( i p m i _ i s _ s e n s o r _ s c a n n i n g _ e n a b l e d ( s t a t e s ) )

printf("

sensor

scanning

enabled\n");

if

( i p m i _ i s _ i n i t i a l _ u p d a t e _ i n _ p r o g r e s s ( s t a t e s ) )

printf("

initial

update

in

progress\n");

for (i=0; i<15; i++) { int val, rv;

r v = i p m i _ s e n s o r _ d i s c r e t e _ e v e n t _ r e a d a b l e ( s e n s o r , i , & v a if (rv || !val) continue; l ) ;

printf("

state

%d

value

is

%d\n",

i,

ipmi

_

is

_

state

_

set(states,

}

r out: e l e a s e _ s d a t a ( s d a t a ) ;

}

static void e v e n t _ s e t _ d o n e ( i p m i _ s e n s o r _ t * s e n s o r ,

int

err,

void

*cb_data)

i));

191

Document info
Document views880
Page views880
Page last viewedSat Dec 10 13:35:44 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments