X hits on this document

PDF document

February 10, 2006 - page 224 / 238

548 views

0 shares

0 downloads

0 comments

224 / 238

212

APPENDIX K. CONNECTION HANDLING INTERFACE (IPMI CONN.H)

/* The privilege level of the connection */ unsigned int priv_level;

/* Close an IPMI connection and report that it is closed. */

i n t ( * c l o s e _ c o n n e c t i o n _ d o n e ) ( i p m i _ c o n _ t

*ipmi,

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

void

* c b _ d a t a ) ;

/* Hacks layer unsigned

reported by OEM code.

This should

or by the user

interface

code.

*/

int

hacks;

be

set

by

the

lower

/* The IPMB address as reported by the lower layer. */ unsigned char ipmb_addr[MAX_IPMI_USED_CHANNELS];

unsigned int

addr len,

_

const

ipmi msg_t

_

*msg);

/* Handle an async event for the connection reported by something

void *attr;

r *con, _ t * a d d r ,

/*

v o else. */ i d ( * h a n d l e _ a s y n c _ e v e n t ) ( i p m i _ c o n _ t c o n s t i p m i _ a d d

Used this call ipmi

by the connection attribute code.

yourself!.

The

thing

that

creates

Don’t do anything with this connection should

_

i p m i _ c o n _ a t t r _ i n i t ( ) w h e n t h e c o n n e c t i o n i s c r e a t e d a n d c o n _ a t t r _ c l e a n u p ( ) w h e n t h e c o n n e c t i o n i s d e s t r o y e d . * /

/* Statistics interfaces.

These may be NULL if the user doesn’t

want statistics. They int (*register_stat)(void

pass in the *user_data,

user

data field.

char

*name,

*/

char *instance, void **stat); void (*add_stat)(void *user_data, void *stat, int value); void (*finished_with_stat)(void *user_data, void *stat);

/* Return the arguments or the connection. */ ipmi_args_t *(*get_startup_args)(ipmi_con_t *con);

/* Increment the usecount of the connection; for each use, the

connection must be closed.

This may be

NULL

if

the

connection

type does not support being reused. */ void (*use_connection)(ipmi_con_t *con);

/*

Like send

none.

If

_

command, but with options. options are passed in, they

options must be

may be NULL if terminated with

Document info
Document views548
Page views548
Page last viewedSun Dec 04 13:14:11 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments