X hits on this document

PDF document

February 10, 2006 - page 191 / 238

655 views

0 shares

0 downloads

0 comments

191 / 238

_ ipmi entity_t

*entity,

void

_ *cb data)

{

if (op == IPMI_ADDED) { id = ipmi_entity_get_entity_id(entity); instance = ipmi_entity_get_entity_instance(entity);

printf("FRU added for: %d.%d\n", id, instance);

}

i if (data) p m i _ f r u _ d a t a _ f r e e ( d a t a ) ;

f static void r u _ c h a n g e ( e n u m i p m i _ u p d a t e _ e o p

,

ipmi_fru_node_t *node;

int

id, instance;

int

rv;

ipmi_fru_t

_ _ *fru = ipmi entity_get fru(entity);

const char

*type;

}

i p m i _ f r u _ p u t _ n o d e ( n o d e ) ;

return 0;

if (!fru) return;

r v = i p m i _ f r u _ g e t _ r o o t _ n o d e ( f r u , & t y p e , & n o d e ) ;

if (rv) return; printf("FRU type: %s"

, type);

t r a v e r s e _ f r u _ n o d e _ t r e e ( 2 , n o d e ) ;

}

}

_ entity_change(enum ipmi_update e op,

_ ipmi domain_t

*domain,

_ ipmi entity_t

*entity,

void

*cb_data)

/* Whenever the status of an entity changes, the function is called

When a new entity is created, we search all sensors that belong to the entity */ static void

{

179

Document info
Document views655
Page views655
Page last viewedFri Dec 09 08:16:28 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments