Changeset ff08b808 in rtems


Ignore:
Timestamp:
Aug 14, 2003, 9:01:30 PM (16 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
1e2e6fe0
Parents:
d216fca7
Message:

2003-08-14 Joel Sherrill <joel@…>

  • Makefile.am, include/rtems/score/object.h, include/rtems/score/objectmp.h, src/objectmp.c, src/objectnametoid.c: Added ID to name lookup service and changed name of id/name translation status code. This propagated to multiple functions. The user API service added was rtems_object_id_to_name()
  • src/objectidtoname.c: New file.
Location:
cpukit/score
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/ChangeLog

    rd216fca7 rff08b808  
     12003-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
    1102003-08-14      Joel Sherrill <joel@OARcorp.com>
    211
  • cpukit/score/Makefile.am

    rd216fca7 rff08b808  
    133133    src/objectfree.c src/objectget.c src/objectgetisr.c src/objectgetbyindex.c \
    134134    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
    136137
    137138THREAD_C_FILES = src/thread.c src/threadchangepriority.c src/threadclearstate.c \
  • cpukit/score/include/rtems/score/object.h

    rd216fca7 rff08b808  
    438438  unsigned32  length
    439439);
     440
    440441/*
    441442 *  _Objects_Name_to_id
     
    455456
    456457typedef enum {
    457   OBJECTS_SUCCESSFUL,
     458  OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL,
    458459  OBJECTS_INVALID_NAME,
     460  OBJECTS_INVALID_ID,
    459461  OBJECTS_INVALID_NODE
    460 } Objects_Name_to_id_errors;
    461 
    462 #define OBJECTS_NAME_ERRORS_FIRST OBJECTS_SUCCESSFUL
     462} Objects_Name_or_id_lookup_errors;
     463
     464#define OBJECTS_NAME_ERRORS_FIRST OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL
    463465#define OBJECTS_NAME_ERRORS_LAST  OBJECTS_INVALID_NODE
    464466
    465 Objects_Name_to_id_errors _Objects_Name_to_id(
     467Objects_Name_or_id_lookup_errors _Objects_Name_to_id(
    466468  Objects_Information *information,
    467469  Objects_Name         name,
    468470  unsigned32           node,
    469471  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
     488Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
     489  Objects_Id      id,
     490  Objects_Name   *name
    470491);
    471492
  • cpukit/score/include/rtems/score/objectmp.h

    rd216fca7 rff08b808  
    106106 */
    107107
    108 Objects_Name_to_id_errors _Objects_MP_Global_name_search (
     108Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search (
    109109  Objects_Information *information,
    110110  Objects_Name         the_name,
  • cpukit/score/src/objectmp.c

    rd216fca7 rff08b808  
    151151 */
    152152
    153 Objects_Name_to_id_errors _Objects_MP_Global_name_search (
     153Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search (
    154154  Objects_Information *information,
    155155  Objects_Name         the_name,
     
    204204          *the_id = the_object->Object.id;
    205205          _Thread_Enable_dispatch();
    206           return OBJECTS_SUCCESSFUL;
     206          return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
    207207        }
    208208      }
  • cpukit/score/src/objectnametoid.c

    rd216fca7 rff08b808  
    3939 *
    4040 *  Output parameters:
    41  *    id                 - object id
    42  *    OBJECTS_SUCCESSFUL - if successful
    43  *    error code         - if unsuccessful
     41 *    id                                   - object id
     42 *    OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL - if successful
     43 *    error code                           - if unsuccessful
    4444 */
    4545
    46 Objects_Name_to_id_errors _Objects_Name_to_id(
     46Objects_Name_or_id_lookup_errors _Objects_Name_to_id(
    4747  Objects_Information *information,
    4848  Objects_Name         name,
     
    8080      if ( (*compare_them)( name, the_object->name, name_length ) ) {
    8181        *id = the_object->id;
    82         return OBJECTS_SUCCESSFUL;
     82        return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
    8383      }
    8484    }
Note: See TracChangeset for help on using the changeset viewer.