Changeset 3235ad9 in rtems for cpukit/rtems/src


Ignore:
Timestamp:
08/23/95 19:30:23 (28 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
5250ff39
Parents:
80e2c29e
Message:

Support for variable length names added to Object Handler. This supports
both fixed length "raw" names and strings from the API's point of view.

Both inline and macro implementations were tested.

Location:
cpukit/rtems/src
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/src/dpmem.c

    r80e2c29e r3235ad9  
    1414
    1515#include <rtems/system.h>
     16#include <rtems/support.h>
    1617#include <rtems/address.h>
    1718#include <rtems/dpmem.h>
     
    3738{
    3839  _Objects_Initialize_information(
    39      &_Dual_ported_memory_Information,
    40      OBJECTS_RTEMS_PORTS,
    41      FALSE,
    42      maximum_ports,
    43      sizeof( Dual_ported_memory_Control )
     40    &_Dual_ported_memory_Information,
     41    OBJECTS_RTEMS_PORTS,
     42    FALSE,
     43    maximum_ports,
     44    sizeof( Dual_ported_memory_Control ),
     45    FALSE,
     46    RTEMS_MAXIMUM_NAME_LENGTH
    4447  );
    4548}
     
    6568
    6669rtems_status_code rtems_port_create(
    67   Objects_Name  name,
     70  rtems_name    name,
    6871  void         *internal_start,
    6972  void         *external_start,
     
    7477  register Dual_ported_memory_Control *the_port;
    7578
    76   if ( !_Objects_Is_name_valid( name) )
     79  if ( !rtems_is_name_valid( name) )
    7780    return ( RTEMS_INVALID_NAME );
    7881
     
    9497  the_port->length        = length - 1;
    9598
    96   _Objects_Open( &_Dual_ported_memory_Information,
    97                  &the_port->Object, name );
     99  _Objects_Open(
     100    &_Dual_ported_memory_Information,
     101    &the_port->Object,
     102    &name
     103  );
     104
    98105  *id = the_port->Object.id;
    99106  _Thread_Enable_dispatch();
     
    119126
    120127rtems_status_code rtems_port_ident(
    121   Objects_Name  name,
     128  rtems_name    name,
    122129  Objects_Id   *id
    123130)
     
    126133    _Objects_Name_to_id(
    127134      &_Dual_ported_memory_Information,
    128       name,
     135      &name,
    129136      RTEMS_SEARCH_ALL_NODES,
    130137      id
  • cpukit/rtems/src/msg.c

    r80e2c29e r3235ad9  
    2323#include <rtems/options.h>
    2424#include <rtems/states.h>
     25#include <rtems/support.h>
    2526#include <rtems/thread.h>
    2627#include <rtems/wkspace.h>
     
    4950    TRUE,
    5051    maximum_message_queues,
    51     sizeof( Message_queue_Control )
     52    sizeof( Message_queue_Control ),
     53    FALSE,
     54    RTEMS_MAXIMUM_NAME_LENGTH
    5255  );
    5356}
     
    131134
    132135rtems_status_code rtems_message_queue_create(
    133   Objects_Name        name,
     136  rtems_name          name,
    134137  unsigned32          count,
    135138  unsigned32          max_message_size,
     
    140143  register Message_queue_Control *the_message_queue;
    141144
    142   if ( !_Objects_Is_name_valid( name ) )
     145  if ( !rtems_is_name_valid( name ) )
    143146    return ( RTEMS_INVALID_NAME );
    144147
     
    195198                            STATES_WAITING_FOR_MESSAGE );
    196199
    197   _Objects_Open( &_Message_queue_Information,
    198                  &the_message_queue->Object, name );
     200  _Objects_Open(
     201    &_Message_queue_Information,
     202    &the_message_queue->Object,
     203    &name
     204  );
    199205
    200206  *id = the_message_queue->Object.id;
     
    231237
    232238rtems_status_code rtems_message_queue_ident(
    233   Objects_Name  name,
     239  rtems_name    name,
    234240  unsigned32    node,
    235241  Objects_Id   *id
    236242)
    237243{
    238   return( _Objects_Name_to_id( &_Message_queue_Information, name,
    239                                node, id ) );
     244  return _Objects_Name_to_id(
     245    &_Message_queue_Information,
     246    &name,
     247    node,
     248    id
     249  );
    240250}
    241251
  • cpukit/rtems/src/msgmp.c

    r80e2c29e r3235ad9  
    3333  Message_queue_MP_Remote_operations  operation,
    3434  Objects_Id                          message_queue_id,
    35   Objects_Name                        name,
     35  rtems_name                          name,
    3636  Objects_Id                          proxy_id
    3737)
     
    435435    MESSAGE_QUEUE_MP_EXTRACT_PROXY,
    436436    the_thread->Wait.id,
    437     (Objects_Name) 0,
     437    (rtems_name) 0,
    438438    the_thread->Object.id
    439439  );
  • cpukit/rtems/src/part.c

    r80e2c29e r3235ad9  
    1515
    1616#include <rtems/system.h>
     17#include <rtems/support.h>
    1718#include <rtems/address.h>
    1819#include <rtems/config.h>
     
    4344    TRUE,
    4445    maximum_partitions,
    45     sizeof( Partition_Control )
     46    sizeof( Partition_Control ),
     47    FALSE,
     48    RTEMS_MAXIMUM_NAME_LENGTH
    4649  );
    4750
     
    7073
    7174rtems_status_code rtems_partition_create(
    72   Objects_Name        name,
     75  rtems_name          name,
    7376  void               *starting_address,
    7477  unsigned32          length,
     
    8083  register Partition_Control *the_partition;
    8184
    82   if ( !_Objects_Is_name_valid( name ) )
     85  if ( !rtems_is_name_valid( name ) )
    8386    return ( RTEMS_INVALID_NAME );
    8487
     
    119122                        length / buffer_size, buffer_size );
    120123
    121   _Objects_Open( &_Partition_Information, &the_partition->Object, name );
     124  _Objects_Open( &_Partition_Information, &the_partition->Object, &name );
    122125
    123126  *id = the_partition->Object.id;
     
    153156
    154157rtems_status_code rtems_partition_ident(
    155   Objects_Name  name,
     158  rtems_name    name,
    156159  unsigned32    node,
    157160  Objects_Id   *id
    158161)
    159162{
    160   return( _Objects_Name_to_id( &_Partition_Information, name, node, id ) );
     163  return _Objects_Name_to_id( &_Partition_Information, &name, node, id );
    161164}
    162165
  • cpukit/rtems/src/partmp.c

    r80e2c29e r3235ad9  
    3131  Partition_MP_Remote_operations  operation,
    3232  Objects_Id                      partition_id,
    33   Objects_Name                    name,
     33  rtems_name                      name,
    3434  Objects_Id                      proxy_id
    3535)
     
    281281    PARTITION_MP_EXTRACT_PROXY,
    282282    the_thread->Wait.id,
    283     (Objects_Name) 0,
     283    (rtems_name) 0,
    284284    the_thread->Object.id
    285285  );
  • cpukit/rtems/src/ratemon.c

    r80e2c29e r3235ad9  
    1515
    1616#include <rtems/system.h>
     17#include <rtems/support.h>
    1718#include <rtems/isr.h>
    1819#include <rtems/object.h>
     
    4142{
    4243  _Objects_Initialize_information(
    43      &_Rate_monotonic_Information,
    44      OBJECTS_RTEMS_PERIODS,
    45      FALSE,
    46      maximum_periods,
    47      sizeof( Rate_monotonic_Control )
     44    &_Rate_monotonic_Information,
     45    OBJECTS_RTEMS_PERIODS,
     46    FALSE,
     47    maximum_periods,
     48    sizeof( Rate_monotonic_Control ),
     49    FALSE,
     50    RTEMS_MAXIMUM_NAME_LENGTH
    4851  );
    4952}
     
    6770
    6871rtems_status_code rtems_rate_monotonic_create(
    69   Objects_Name  name,
     72  rtems_name    name,
    7073  Objects_Id   *id
    7174)
     
    7376  Rate_monotonic_Control *the_period;
    7477
    75   if ( !_Objects_Is_name_valid( name ) )
     78  if ( !rtems_is_name_valid( name ) )
    7679    return( RTEMS_INVALID_NAME );
    7780
     
    8891  the_period->state = RATE_MONOTONIC_INACTIVE;
    8992
    90   _Objects_Open( &_Rate_monotonic_Information, &the_period->Object, name );
     93  _Objects_Open( &_Rate_monotonic_Information, &the_period->Object, &name );
    9194
    9295  *id = the_period->Object.id;
     
    113116
    114117rtems_status_code rtems_rate_monotonic_ident(
    115   Objects_Name  name,
     118  rtems_name    name,
    116119  Objects_Id   *id
    117120)
     
    119122  return _Objects_Name_to_id(
    120123    &_Rate_monotonic_Information,
    121     name,
     124    &name,
    122125    RTEMS_SEARCH_LOCAL_NODE,
    123126    id
  • cpukit/rtems/src/region.c

    r80e2c29e r3235ad9  
    1515
    1616#include <rtems/system.h>
     17#include <rtems/support.h>
    1718#include <rtems/config.h>
    1819#include <rtems/object.h>
     
    3940{
    4041  _Objects_Initialize_information(
    41      &_Region_Information,
    42      OBJECTS_RTEMS_REGIONS,
    43      FALSE,
    44      maximum_regions,
    45      sizeof( Region_Control )
    46    );
     42    &_Region_Information,
     43    OBJECTS_RTEMS_REGIONS,
     44    FALSE,
     45    maximum_regions,
     46    sizeof( Region_Control ),
     47    FALSE,
     48    RTEMS_MAXIMUM_NAME_LENGTH
     49  );
    4750}
    4851
     
    6972
    7073rtems_status_code rtems_region_create(
    71   Objects_Name        name,
     74  rtems_name          name,
    7275  void               *starting_address,
    7376  unsigned32          length,
     
    7982  Region_Control *the_region;
    8083
    81   if ( !_Objects_Is_name_valid( name ) )
     84  if ( !rtems_is_name_valid( name ) )
    8285    return ( RTEMS_INVALID_NAME );
    8386
     
    112115     &the_region->Wait_queue, attribute_set, STATES_WAITING_FOR_SEGMENT );
    113116
    114   _Objects_Open( &_Region_Information, &the_region->Object, name );
     117  _Objects_Open( &_Region_Information, &the_region->Object, &name );
    115118
    116119  *id = the_region->Object.id;
     
    137140
    138141rtems_status_code rtems_region_ident(
    139   Objects_Name  name,
     142  rtems_name    name,
    140143  Objects_Id   *id
    141144)
     
    143146  return _Objects_Name_to_id(
    144147      &_Region_Information,
    145       name,
     148      &name,
    146149      RTEMS_SEARCH_LOCAL_NODE,
    147150      id
  • cpukit/rtems/src/regionmp.c

    r80e2c29e r3235ad9  
    3131  Region_MP_Remote_operations  operation,
    3232  Objects_Id                      region_id,
    33   Objects_Name                    name,
     33  rtems_name                      name,
    3434  Objects_Id                      proxy_id
    3535)
     
    290290    REGION_MP_EXTRACT_PROXY,
    291291    the_thread->Wait.id,
    292     (Objects_Name) 0,
     292    (rtems_name) 0,
    293293    the_thread->Object.id
    294294  );
  • cpukit/rtems/src/rtemstimer.c

    r80e2c29e r3235ad9  
    1515
    1616#include <rtems/system.h>
     17#include <rtems/support.h>
    1718#include <rtems/object.h>
    1819#include <rtems/thread.h>
     
    3839{
    3940  _Objects_Initialize_information(
    40      &_Timer_Information,
    41      OBJECTS_RTEMS_TIMERS,
    42      FALSE,
    43      maximum_timers,
    44      sizeof( Timer_Control )
     41    &_Timer_Information,
     42    OBJECTS_RTEMS_TIMERS,
     43    FALSE,
     44    maximum_timers,
     45    sizeof( Timer_Control ),
     46    FALSE,
     47    RTEMS_MAXIMUM_NAME_LENGTH
    4548  );
    4649}
     
    6366
    6467rtems_status_code rtems_timer_create(
    65   Objects_Name  name,
     68  rtems_name    name,
    6669  Objects_Id   *id
    6770)
     
    6972  Timer_Control *the_timer;
    7073
    71   if ( !_Objects_Is_name_valid( name ) )
     74  if ( !rtems_is_name_valid( name ) )
    7275    return ( RTEMS_INVALID_NAME );
    7376
     
    8386  the_timer->the_class = TIMER_DORMANT;
    8487
    85   _Objects_Open( &_Timer_Information, &the_timer->Object, name );
     88  _Objects_Open( &_Timer_Information, &the_timer->Object, &name );
    8689
    8790  *id = the_timer->Object.id;
     
    108111
    109112rtems_status_code rtems_timer_ident(
    110   Objects_Name  name,
     113  rtems_name    name,
    111114  Objects_Id   *id
    112115)
     
    114117  return _Objects_Name_to_id(
    115118    &_Timer_Information,
    116     name,
     119    &name,
    117120    RTEMS_SEARCH_LOCAL_NODE,
    118121    id
  • cpukit/rtems/src/sem.c

    r80e2c29e r3235ad9  
    2828
    2929#include <rtems/system.h>
     30#include <rtems/support.h>
    3031#include <rtems/attr.h>
    3132#include <rtems/config.h>
     
    5758  _Objects_Initialize_information(
    5859    &_Semaphore_Information,
    59      OBJECTS_RTEMS_SEMAPHORES,
     60    OBJECTS_RTEMS_SEMAPHORES,
    6061    TRUE,
    6162    maximum_semaphores,
    62     sizeof( Semaphore_Control )
     63    sizeof( Semaphore_Control ),
     64    FALSE,
     65    RTEMS_MAXIMUM_NAME_LENGTH
    6366  );
    6467}
     
    8487
    8588rtems_status_code rtems_semaphore_create(
    86   Objects_Name        name,
     89  rtems_name          name,
    8790  unsigned32          count,
    8891  rtems_attribute  attribute_set,
     
    9295  register Semaphore_Control *the_semaphore;
    9396
    94   if ( !_Objects_Is_name_valid( name ) )
     97  if ( !rtems_is_name_valid( name ) )
    9598    return ( RTEMS_INVALID_NAME );
    9699
     
    148151                            attribute_set, STATES_WAITING_FOR_SEMAPHORE );
    149152
    150   _Objects_Open( &_Semaphore_Information, &the_semaphore->Object, name );
     153  _Objects_Open( &_Semaphore_Information, &the_semaphore->Object, &name );
    151154
    152155  *id = the_semaphore->Object.id;
     
    182185
    183186rtems_status_code rtems_semaphore_ident(
    184   Objects_Name  name,
     187  rtems_name    name,
    185188  unsigned32    node,
    186189  Objects_Id   *id
    187190)
    188191{
    189   return( _Objects_Name_to_id( &_Semaphore_Information, name, node, id ) );
     192  return( _Objects_Name_to_id( &_Semaphore_Information, &name, node, id ) );
    190193}
    191194
  • cpukit/rtems/src/semmp.c

    r80e2c29e r3235ad9  
    3232  Semaphore_MP_Remote_operations  operation,
    3333  Objects_Id                      semaphore_id,
    34   Objects_Name                    name,
     34  rtems_name                      name,
    3535  Objects_Id                      proxy_id
    3636)
     
    287287    SEMAPHORE_MP_EXTRACT_PROXY,
    288288    the_thread->Wait.id,
    289     (Objects_Name) 0,
     289    (rtems_name) 0,
    290290    the_thread->Object.id
    291291  );
  • cpukit/rtems/src/taskmp.c

    r80e2c29e r3235ad9  
    3232  RTEMS_tasks_MP_Remote_operations operation,
    3333  Objects_Id                       task_id,
    34   Objects_Name                     name
     34  rtems_name                       name
    3535)
    3636{
  • cpukit/rtems/src/tasks.c

    r80e2c29e r3235ad9  
    1515
    1616#include <rtems/system.h>
     17#include <rtems/support.h>
    1718#include <rtems/modes.h>
    1819#include <rtems/object.h>
     
    4950
    5051rtems_status_code rtems_task_create(
    51   Objects_Name         name,
     52  rtems_name           name,
    5253  rtems_task_priority  initial_priority,
    5354  unsigned32           stack_size,
     
    6364  rtems_attribute          the_attribute_set;
    6465
    65   if ( !_Objects_Is_name_valid( name ) )
     66  if ( !rtems_is_name_valid( name ) )
    6667    return ( RTEMS_INVALID_NAME );
    6768
     
    157158  _ASR_Initialize( &the_thread->Signal );
    158159
    159   _Objects_Open( &_Thread_Information, &the_thread->Object, name );
     160  _Objects_Open( &_Thread_Information, &the_thread->Object, &name );
    160161
    161162  *id = the_thread->Object.id;
     
    193194
    194195rtems_status_code rtems_task_ident(
    195   Objects_Name  name,
     196  rtems_name    name,
    196197  unsigned32    node,
    197198  Objects_Id   *id
     
    199200{
    200201  if ( name != OBJECTS_ID_OF_SELF )
    201     return( _Objects_Name_to_id( &_Thread_Information, name, node, id ) );
     202    return( _Objects_Name_to_id( &_Thread_Information, &name, node, id ) );
    202203
    203204  *id = _Thread_Executing->Object.id;
Note: See TracChangeset for help on using the changeset viewer.