An object name is an unsigned thirty-two bit entity
associated with the object by the user. The data type
rtems.name
is used to store object names.
Although not required by RTEMS, object names are often
composed of four ASCII characters which help identify that object.
For example, a task which causes a light to blink might be
called "LITE". The rtems.build_name
routine
is provided to build an object name from four ASCII characters.
The following example illustrates this:
My_Name : RTEMS.Name; My_Name = RTEMS.Build_Name( 'L', 'I', 'T', 'E' );
However, it is not required that the application use ASCII characters to build object names. For example, if an application requires one-hundred tasks, it would be difficult to assign meaningful ASCII names to each task. A more convenient approach would be to name them the binary values one through one-hundred, respectively.
Copyright © 1988-2008 OAR Corporation