rtems_status_code rtems_object_set_name( rtems_id id, const char *name );
RTEMS_SUCCESSFUL
- name looked up successfully
RTEMS_INVALID_ADDRESS
- invalid name pointer
RTEMS_INVALID_ID
- invalid object id
This service sets the name of id
to that specified
by the string located at name
.
This directive is strictly local and does not impact task scheduling.
If the object specified by id
is of a class that
has a string name, this method will free the existing
name to the RTEMS Workspace and allocate enough memory
from the RTEMS Workspace to make a copy of the string
located at name
.
If the object specified by id
is of a class that
has a thirty-two bit integer style name, then the first
four characters in *name
will be used to construct
the name.
name to the RTEMS Workspace and allocate enough memory
from the RTEMS Workspace to make a copy of the string
Copyright © 1988-2008 OAR Corporation