Enumerations | |
| enum | rt_object_class_type |
Functions | |
| void | rt_system_object_init (void) |
| void | rt_object_init (struct rt_object *object, enum rt_object_class_type type, const char *name) |
| void | rt_object_detach (rt_object_t object) |
| rt_object_t | rt_object_allocate (enum rt_object_class_type type, const char *name) |
| void | rt_object_delete (rt_object_t object) |
| rt_object_t | rt_object_find (enum rt_object_class_type type, const char *name) |
| rt_err_t | rt_object_is_systemobject (rt_object_t object) |
Kernel objects include most of the facilities in the kernel:
Figure 2: Kernel Object
| enum rt_object_class_type |
The object type can be one of the follows with specific macros enabled:
Device
| rt_object_t rt_object_allocate | ( | enum rt_object_class_type | type, | |
| const char * | name | |||
| ) |
This function will allocate an object from object system
| type | the type of object | |
| name | the object name. In system, the object's name must be unique. |
| void rt_object_delete | ( | rt_object_t | object | ) |
This function will delete an object and release object memory.
| object | the specified object to be deleted. |
| void rt_object_detach | ( | rt_object_t | object | ) |
This function will detach a static object from object system, and the memory of static object is not freed.
| object | the specified object to be detached. |
| rt_object_t rt_object_find | ( | enum rt_object_class_type | type, | |
| const char * | name | |||
| ) |
This fucntion will find the object id by specified object name
| type | the type of object | |
| name | the specified object name |
| void rt_object_init | ( | struct rt_object * | object, | |
| enum rt_object_class_type | type, | |||
| const char * | name | |||
| ) |
This function will init an object and add it to object system management.
| object | the specified object to be initialized. | |
| type | the object type. | |
| name | the object name. In system, the object's name must be unique. |
| rt_err_t rt_object_is_systemobject | ( | rt_object_t | object | ) |
This function will judge the object is system object or not. Normally, the system object is a static object and the type of object set to RT_Object_Class_Static.
| object | the specified object to be judged. |
| void rt_system_object_init | ( | void | ) |
This function will initialize system object management
1.5.7