X hits on this document

PDF document

February 10, 2006 - page 211 / 238

632 views

0 shares

0 downloads

0 comments

211 / 238

s e n s o r _ c h a n g e NULL); if (rv) { , p r i n t f ( " i p m i _ e n t i t y _ s e t _ s e n s o r _ u p d a t e _ h a n d l e r : 0 x % x " , exit(1); r v ) ;

}

}

}

_ _ setup_done(ipmi domain t *domain,

int

err,

unsigned int

_ conn num,

unsigned int

_ port num,

int

_ still connected,

void

_ *user data)

/* After we have established connection to domain, this function get called

At this time, we can do whatever things we want to do. Herr we want to search all entities in the system */ void

{

int rv;

/* Register a callback functin entity_change. When a new entities

is created, entity_change is called */ rv = ipmi_domain_add_entity_update_handler(domain, entity_change, domain); if (rv) {

p r i n t f ( " i p m i _ d o m a i n _ a d d _ e n t i t y _ u p d a t e _ h a n d l e r r e t u r n e r r o r : % d \ n " , return; r v ) ;

}

}

s t a t i c o s _ h a n d l e r _ t * o s _ h n d ;

int

rv;

int

_ curr arg = 1;

_ ipmi args_t

*args;

_ ipmi con_t

*con;

int main(int argc, char *argv[]) {

progname = argv[0];

/* OS handler allocated first. */ o s _ h n d = i p m i _ p o s i x _ s e t u p _ o s _ h a n d l e r ( ) if (!os_hnd) { ;

199

Document info
Document views632
Page views632
Page last viewedThu Dec 08 08:44:42 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments