forked from Imagelibrary/rtems
Added routine to remove an object from the namespace. It just clears
its name in the name_table. This was required by the POSIX semaphore and message queue managers which support a concept of open, close, and unlink. The object becomes "invisible" to further opens following an unlink but all open sessions remain active until they are closed. This requires that the removal of an object ID be separate from the removal of its name.
This commit is contained in:
@@ -269,5 +269,22 @@ RTEMS_INLINE_ROUTINE void _Objects_Close(
|
||||
_Objects_Clear_name( the_object->name, information->name_length );
|
||||
}
|
||||
|
||||
/*PAGE
|
||||
*
|
||||
* _Objects_Namespace_remove
|
||||
*
|
||||
* DESCRIPTION:
|
||||
*
|
||||
* This function removes the_object from the namespace.
|
||||
*/
|
||||
|
||||
RTEMS_INLINE_ROUTINE void _Objects_Namespace_remove(
|
||||
Objects_Information *information,
|
||||
Objects_Control *the_object
|
||||
)
|
||||
{
|
||||
_Objects_Clear_name( the_object->name, information->name_length );
|
||||
}
|
||||
|
||||
#endif
|
||||
/* end of include file */
|
||||
|
||||
Reference in New Issue
Block a user