object.inl File Reference

This graph shows which files directly or indirectly include this file:


Functions

RTEMS_INLINE_ROUTINE Objects_Id _Objects_Build_id (Objects_APIs the_api, uint32_t the_class, uint32_t node, uint32_t index)
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API (Objects_Id id)
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class (Objects_Id id)
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_node (Objects_Id id)
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_index (Objects_Id id)
RTEMS_INLINE_ROUTINE boolean _Objects_Is_api_valid (uint32_t the_api)
RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_node (uint32_t node)
RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_id (Objects_Id id)
RTEMS_INLINE_ROUTINE boolean _Objects_Are_ids_equal (Objects_Id left, Objects_Id right)
RTEMS_INLINE_ROUTINE
Objects_Control
_Objects_Get_local_object (Objects_Information *information, uint16_t index)
RTEMS_INLINE_ROUTINE void _Objects_Set_local_object (Objects_Information *information, uint16_t index, Objects_Control *the_object)
RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id (Objects_Information *information, Objects_Control *the_object)
RTEMS_INLINE_ROUTINE void _Objects_Open (Objects_Information *information, Objects_Control *the_object, Objects_Name name)
RTEMS_INLINE_ROUTINE void _Objects_Open_u32 (Objects_Information *information, Objects_Control *the_object, uint32_t name)
RTEMS_INLINE_ROUTINE void _Objects_Open_string (Objects_Information *information, Objects_Control *the_object, const char *name)

Detailed Description


Function Documentation

RTEMS_INLINE_ROUTINE boolean _Objects_Are_ids_equal ( Objects_Id  left,
Objects_Id  right 
)

This function returns TRUE if left and right are equal, and FALSE otherwise.

Parameters:
[in] left is the Id on the left hand side of the comparison
[in] right is the Id on the right hand side of the comparison
Returns:
This method returns TRUE if the specified object IDs are equal and FALSE otherwise.

RTEMS_INLINE_ROUTINE Objects_Id _Objects_Build_id ( Objects_APIs  the_api,
uint32_t  the_class,
uint32_t  node,
uint32_t  index 
)

This function builds an object's id from the processor node and index values specified.

Parameters:
[in] the_api indicates the API associated with this Id.
[in] the_class indicates the class of object. It is specific to the_api.
[in] node is the node where this object resides.
[in] index is the instance number of this object.
Returns:
This method returns an object Id constructed from the arguments.

References OBJECTS_API_START_BIT, OBJECTS_CLASS_START_BIT, OBJECTS_INDEX_START_BIT, and OBJECTS_NODE_START_BIT.

RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API ( Objects_Id  id  ) 

This function returns the API portion of the ID.

Parameters:
[in] id is the object Id to be processed.
Returns:
This method returns an object Id constructed from the arguments.

References OBJECTS_API_START_BIT, and OBJECTS_API_VALID_BITS.

RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class ( Objects_Id  id  ) 

This function returns the class portion of the ID.

Parameters:
[in] id is the object Id to be processed

References OBJECTS_CLASS_START_BIT, and OBJECTS_CLASS_VALID_BITS.

RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_index ( Objects_Id  id  ) 

This function returns the index portion of the ID.

Parameters:
[in] id is the Id to be processed
Returns:
This method returns the class portion of the specified object ID.

References OBJECTS_INDEX_START_BIT, and OBJECTS_INDEX_VALID_BITS.

Referenced by _Objects_Invalidate_Id(), _Objects_Open(), _Objects_Open_string(), and _Objects_Open_u32().

RTEMS_INLINE_ROUTINE Objects_Control* _Objects_Get_local_object ( Objects_Information information,
uint16_t  index 
)

This function returns a pointer to the local_table object referenced by the index.

Parameters:
[in] information points to an Object Information Table
[in] index is the index of the object the caller wants to access
Returns:
This method returns a pointer to a local object or NULL if the index is invalid.

References Objects_Information::local_table, and Objects_Information::maximum.

RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_node ( Objects_Id  id  ) 

This function returns the node portion of the ID.

Parameters:
[in] id is the object Id to be processed
Returns:
This method returns the node portion of an object ID.

References OBJECTS_NODE_START_BIT, and OBJECTS_NODE_VALID_BITS.

Referenced by _Objects_Is_local_id().

RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id ( Objects_Information information,
Objects_Control the_object 
)

This function sets the pointer to the local_table object referenced by the index to a NULL so the object Id is invalid after this call.

Parameters:
[in] information points to an Object Information Table
[in] the_object is the local object pointer
Note:
This routine is ONLY to be called in places where the index portion of the Id is known to be good. This is OK since it is normally called from object create/init or delete/destroy operations.

References _Objects_Get_index(), _Objects_Set_local_object(), and Objects_Control::id.

RTEMS_INLINE_ROUTINE boolean _Objects_Is_api_valid ( uint32_t  the_api  ) 

This function returns TRUE if the api is valid.

Parameters:
[in] the_api is the api portion of an object ID.
Returns:
This method returns TRUE if the specified api value is valid and FALSE otherwise.

References OBJECTS_APIS_LAST, and TRUE.

RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_id ( Objects_Id  id  ) 

This function returns TRUE if the id is of a local object, and FALSE otherwise.

Parameters:
[in] id is an object ID
Returns:
This method returns TRUE if the specified object Id is local and FALSE otherwise.
Note:
On a single processor configuration, this always returns TRUE.

References _Objects_Get_node(), _Objects_Is_local_node(), and TRUE.

RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_node ( uint32_t  node  ) 

This function returns TRUE if the node is of the local object, and FALSE otherwise.

Parameters:
[in] node is the node number and corresponds to the node number portion of an object ID.
Returns:
This method returns TRUE if the specified node is the local node and FALSE otherwise.

References _Objects_Local_node.

Referenced by _Objects_Is_local_id().

RTEMS_INLINE_ROUTINE void _Objects_Open ( Objects_Information information,
Objects_Control the_object,
Objects_Name  name 
)

This function places the_object control pointer and object name in the Local Pointer and Local Name Tables, respectively.

Parameters:
[in] information points to an Object Information Table
[in] the_object is a pointer to an object
[in] name is the name of the object to make accessible

References _Objects_Get_index(), _Objects_Set_local_object(), Objects_Control::id, and Objects_Control::name.

RTEMS_INLINE_ROUTINE void _Objects_Open_string ( Objects_Information information,
Objects_Control the_object,
const char *  name 
)

This function places the_object control pointer and object name in the Local Pointer and Local Name Tables, respectively.

Parameters:
[in] information points to an Object Information Table
[in] the_object is a pointer to an object
[in] name is the name of the object to make accessible

References _Objects_Get_index(), _Objects_Set_local_object(), Objects_Control::id, Objects_Control::name, and Objects_Name::name_p.

RTEMS_INLINE_ROUTINE void _Objects_Open_u32 ( Objects_Information information,
Objects_Control the_object,
uint32_t  name 
)

This function places the_object control pointer and object name in the Local Pointer and Local Name Tables, respectively.

Parameters:
[in] information points to an Object Information Table
[in] the_object is a pointer to an object
[in] name is the name of the object to make accessible

References _Objects_Get_index(), _Objects_Set_local_object(), Objects_Control::id, Objects_Control::name, and Objects_Name::name_u32.

RTEMS_INLINE_ROUTINE void _Objects_Set_local_object ( Objects_Information information,
uint16_t  index,
Objects_Control the_object 
)

This function sets the pointer to the local_table object referenced by the index.

Parameters:
[in] information points to an Object Information Table
[in] index is the index of the object the caller wants to access
[in] the_object is the local object pointer
Note:
This routine is ONLY to be called in places where the index portion of the Id is known to be good. This is OK since it is normally called from object create/init or delete/destroy operations.

References Objects_Information::local_table, and Objects_Information::maximum.

Referenced by _Objects_Invalidate_Id(), _Objects_Open(), _Objects_Open_string(), and _Objects_Open_u32().


Generated on Sat Aug 30 06:16:49 2008 for RTEMSSuperCore by  doxygen 1.5.6