X hits on this document

PDF document

February 10, 2006 - page 36 / 238

557 views

0 shares

0 downloads

0 comments

36 / 238

int

_ still connected,

void

_ *user data)

24

CHAPTER 2. OPENIPMI

If a connection is established, then err will be zero. Otherwise it is the error that caused the connection to fail. The conn_num parm is the particular connection number (from the cons array passed into the domain setup). A connection may have specific ports, generally multiple connections to the same MC. The still_connected parm tells if you still have some connection to the domain.

If a connection is down, the connection change callback will be called periodically to report the problem as OpenIPMI attempts to re-establish the connection.

{

}

...

2.5.2

Domain

Fully

Up

The domain_fully_up callback will be called after the domain has been fully scanned, all SDRs fetched, all FRUs fetched, and all SELs read for the first time. This gives you an indication that the domain is completely “up”, although there really is no concept of completely “up” in IPMI since the system may dynamically change. It is useful for some things, though (and people complained a lot about not having it in the past) so it is now available. The callback is in the form:

static void d o m a i n _ f u l l y _ u p ( i p m i _ d o m a i n _ t * d o m a i n ,

void

* u s e r _ d a t a 2 )

{

...

}

Note that this will not be called until the domain is fully up. If the domain never comes up, this will never be called. So don’t rely on this. The connection up callback will always be called.

2.5.3

Domain

Options

When a domain is created, it may be passed options to control how the domain operates. For instance, if you do not want to scan FRUs, or you do not want to fetch SDRs, you can control exactly what OpenIPMI will do.

C o n t r o l o f t h i s i s d o n e t h r o u g h t h e o p t i o n s . T h i s i s a n a r r a y o f v a l u e s p a s s e d t o i p m i _ o p e n _ d o m a i n Each element is: .

t y p e d e f s t r u c t i p m i _ o p e n _ o p t i o n _ { int option; union { long ival; void *pval; }; } ipmi_open_option_t; s

Document info
Document views557
Page views557
Page last viewedSun Dec 04 22:57:47 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments