X hits on this document

PDF document

February 10, 2006 - page 221 / 238

664 views

0 shares

0 downloads

0 comments

221 / 238

/* Connection-specific data for the underlying connection. */ void *con_data;

/* If OEM code want to attach some data, it can to it here. */ void *oem_data; v o i d ( * o e m _ d a t a _ c l e a n u p ) ( i p m i _ c o n _ t * i p m i ) ;

/* This allows the connection to tell the upper layer that broadcasting will not work on this interface. */ int broadcast_broken;

/*

Calls for the interface. These "errno" errors if they fail. */

should

all

return

standard

/* Start processing on a connection.

Note that the handler *must*

be called with the global read lock not held, because the handler must write lock the global lock in order to add the MC

to the global list.

This will report success/failure

with

the

con_changed_handler, so set that int (*start_con)(ipmi_con_t *ipmi);

up

first.

*/

/* Add a callback to call when the connection goes down or up. */

i n t ( * a d d _ c o n _ c h a n g e _ h a n d l e r ) ( i p m i _ c *ipmi, o n _ t i p m i _ l l _ c o n _ c h a n g e d _ c b h a n d l e r ,

*cb_data); *ipmi, void i n t ( * r e m o v e _ c o n _ c h a n g e _ h a n d l e r ) ( i p m i _ c o n _ t i p m i _ l l _ c o n _ c h a n g e d _ c b h a n d l e r ,

void

* c b _ d a t a ) ;

unsigned

int

_ num_ipmb addr,

int

active,

unsigned

int

hacks);

can in

c o n s t u n s i g n e d c h a r i p m b _ a d d r [ ] ,

changed, it as the ones

/*

the IPMB address handler. */ void (*set_ipmb_addr)(ipmi_con_t

*ipmi,

If OEM code use this to

discovers that an IPMB address has

change

it.

The

hacks

are

the

same

/* Add a handler that will be called when the IPMB address changes. */

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

*ipmi,

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

*cb_data); *ipmi, void i n t ( * r e m o v e _ i p m b _ a d d r _ h a n d l e r ) ( i p m i _ c o n _ t i p m i _ l l _ i p m b _ a d d r _ c b h a n d l e r ,

void

* c b _ d a t a ) ;

209

Document info
Document views664
Page views664
Page last viewedFri Dec 09 14:27:51 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments