X hits on this document

PDF document

February 10, 2006 - page 112 / 238

540 views

0 shares

0 downloads

0 comments

112 / 238

100

CHAPTER 7. ENTITIES

i p m i _ e v e n t _ t

*event);

i n t i p m i _ e n t i t y _ a d d _ p r e s e n c e _ h a n d l e r ( i p m i _ e n t i t *ent, y _ t i p m i _ e n t i t y _ p r e s e n c e _ c h a n g e _ c b h a n d l e r ,

void i n t i p m i _ e n t i t y _ r e m o v e _ p r e s e n c e _ h a n d l e r

* c b _ d a t a ) ;

( i p m i _ e n t i t y _ t

*ent,

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

void

* c b _ d a t a ) ;

This is a standard event handler as defined in section 2.2.5 on page 20.

7.4

Entity Types and Info

Entities come in four different flavors: MC - An MC entity is for a MC. FRU - This is for field-replaceable entities that are not MCs. Generic - Some other device on the IPMB bus.

Unknown - This is for entities that do not have an SDR record to identify them. These entities are generally only referenced in sensor records or in entity association records.

The following call returns the entity type: e n u m i p m i _ d l r _ t y p e _ e i p m i _ e n t i t y _ g e t _ t y p e ( i p m i _ e n t i t y _ t * e n t ) ;

Valid entity types are: IPMI ENTITY UNKNOWN IPMI ENTITY MC IPMI ENTITY FRU IPMI ENTITY GENERIC There are calls to fetch information about entities, but only certain calls are available for certain entities. All these calls have the form:

int ipmi_entity_get_xxx(ipmi_entity_t *ent);

where xxx is the data item. These will not return errors, they will return undefined information if they are called on an entity that does not support the specific data item. The data items supported are:

Data Item is fru entity id entity instance

device channel

Description This will be true if the item has FRU information This will be the entity id of the entity. This will be the entity instance of the entity.

M x x x

F x x x

This is the device channel for the entity. It is only useful if the entity instance is device-relative. See section 7 for more details.

x

x

G

U

x

x

x

x

x

x

x

x

Document info
Document views540
Page views540
Page last viewedSun Dec 04 06:48:40 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments