Changeset ff08b808 in rtems
- Timestamp:
- 08/14/03 21:01:30 (21 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 1e2e6fe0
- Parents:
- d216fca7
- Location:
- cpukit/score
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/score/ChangeLog
rd216fca7 rff08b808 1 2003-08-14 Joel Sherrill <joel@OARcorp.com> 2 3 * Makefile.am, include/rtems/score/object.h, 4 include/rtems/score/objectmp.h, src/objectmp.c, src/objectnametoid.c: 5 Added ID to name lookup service and changed name of id/name 6 translation status code. This propagated to multiple functions. The 7 user API service added was rtems_object_id_to_name() 8 * src/objectidtoname.c: New file. 9 1 10 2003-08-14 Joel Sherrill <joel@OARcorp.com> 2 11 -
cpukit/score/Makefile.am
rd216fca7 rff08b808 133 133 src/objectfree.c src/objectget.c src/objectgetisr.c src/objectgetbyindex.c \ 134 134 src/objectgetnext.c src/objectinitializeinformation.c src/objectnametoid.c \ 135 src/objectshrinkinformation.c src/objectgetnoprotection.c 135 src/objectshrinkinformation.c src/objectgetnoprotection.c \ 136 src/objectidtoname.c 136 137 137 138 THREAD_C_FILES = src/thread.c src/threadchangepriority.c src/threadclearstate.c \ -
cpukit/score/include/rtems/score/object.h
rd216fca7 rff08b808 438 438 unsigned32 length 439 439 ); 440 440 441 /* 441 442 * _Objects_Name_to_id … … 455 456 456 457 typedef enum { 457 OBJECTS_ SUCCESSFUL,458 OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL, 458 459 OBJECTS_INVALID_NAME, 460 OBJECTS_INVALID_ID, 459 461 OBJECTS_INVALID_NODE 460 } Objects_Name_ to_id_errors;461 462 #define OBJECTS_NAME_ERRORS_FIRST OBJECTS_ SUCCESSFUL462 } Objects_Name_or_id_lookup_errors; 463 464 #define OBJECTS_NAME_ERRORS_FIRST OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL 463 465 #define OBJECTS_NAME_ERRORS_LAST OBJECTS_INVALID_NODE 464 466 465 Objects_Name_ to_id_errors _Objects_Name_to_id(467 Objects_Name_or_id_lookup_errors _Objects_Name_to_id( 466 468 Objects_Information *information, 467 469 Objects_Name name, 468 470 unsigned32 node, 469 471 Objects_Id *id 472 ); 473 474 /* 475 * _Objects_Id_to_Name 476 * 477 * DESCRIPTION: 478 * 479 * This function implements the common portion of the object Id 480 * to name directives. This function returns the name 481 * associated with object id. 482 * 483 * NOTE: 484 * 485 * This function currently does not support string names. 486 */ 487 488 Objects_Name_or_id_lookup_errors _Objects_Id_to_name ( 489 Objects_Id id, 490 Objects_Name *name 470 491 ); 471 492 -
cpukit/score/include/rtems/score/objectmp.h
rd216fca7 rff08b808 106 106 */ 107 107 108 Objects_Name_ to_id_errors _Objects_MP_Global_name_search (108 Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search ( 109 109 Objects_Information *information, 110 110 Objects_Name the_name, -
cpukit/score/src/objectmp.c
rd216fca7 rff08b808 151 151 */ 152 152 153 Objects_Name_ to_id_errors _Objects_MP_Global_name_search (153 Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search ( 154 154 Objects_Information *information, 155 155 Objects_Name the_name, … … 204 204 *the_id = the_object->Object.id; 205 205 _Thread_Enable_dispatch(); 206 return OBJECTS_ SUCCESSFUL;206 return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 207 207 } 208 208 } -
cpukit/score/src/objectnametoid.c
rd216fca7 rff08b808 39 39 * 40 40 * Output parameters: 41 * id - object id42 * OBJECTS_ SUCCESSFUL - if successful43 * error code - if unsuccessful41 * id - object id 42 * OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL - if successful 43 * error code - if unsuccessful 44 44 */ 45 45 46 Objects_Name_ to_id_errors _Objects_Name_to_id(46 Objects_Name_or_id_lookup_errors _Objects_Name_to_id( 47 47 Objects_Information *information, 48 48 Objects_Name name, … … 80 80 if ( (*compare_them)( name, the_object->name, name_length ) ) { 81 81 *id = the_object->id; 82 return OBJECTS_ SUCCESSFUL;82 return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL; 83 83 } 84 84 }
Note: See TracChangeset
for help on using the changeset viewer.