X hits on this document

PDF document

February 10, 2006 - page 167 / 238

520 views

0 shares

0 downloads

0 comments

167 / 238

Chapter 11

Other OpenIPMI Concerns

11.1

When Operations Happen

As mentioned before, OpenIPMI has a very dynamic view of the domain. It also reports things as it finds them, but the work on those things is not necessarily “done”. OpenIPMI has no concept of anything being “done”; it views a domain as a dynamic entity that can change over time.

In some cases, though, it may be useful to know when certain operations complete. The following call will tell you when the main SDR repository has been read. You can call it after you create the domain but before the domain has finished initialization; you can register your own handler here:

int i p m i _ d o m a i n _ s e t _ m a i n _ S D R s _ r e a d _ h a n d l e r ( i p m i _ d o m a i n _ t * d o m a i n , i p m i _ d o m a i n _ c b h a n d l e r ,

void

* c b _ d a t a )

Likewise, when a MC is reported the SDRs and events have not yet been read. To register handlers for

those, use:

int ipmi mc set sdrs first read handler(ipmi mc t

_

_

_

_

_

_

_

_

*mc,

ipmi mc_ptr cb handler,

_

_

void int ipmi mc set sels first read handler(ipmi mc t

_

_

_

_

_

_

_

_

*cb_data); *mc,

i p m i _ m c _ p t r _ c b h a n d l e r ,

void

* c b _ d a t a ) ;

Note that you should almost certainly not use these, unless you absolutely have to. In general, your software should handle the dynamic nature of an IPMI system dynamically.

155

Document info
Document views520
Page views520
Page last viewedSat Dec 03 10:25:22 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments