Changeset 3235ad9 in rtems for cpukit/rtems/src
- Timestamp:
- 08/23/95 19:30:23 (28 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 5250ff39
- Parents:
- 80e2c29e
- Location:
- cpukit/rtems/src
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/rtems/src/dpmem.c
r80e2c29e r3235ad9 14 14 15 15 #include <rtems/system.h> 16 #include <rtems/support.h> 16 17 #include <rtems/address.h> 17 18 #include <rtems/dpmem.h> … … 37 38 { 38 39 _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 44 47 ); 45 48 } … … 65 68 66 69 rtems_status_code rtems_port_create( 67 Objects_Namename,70 rtems_name name, 68 71 void *internal_start, 69 72 void *external_start, … … 74 77 register Dual_ported_memory_Control *the_port; 75 78 76 if ( ! _Objects_Is_name_valid( name) )79 if ( !rtems_is_name_valid( name) ) 77 80 return ( RTEMS_INVALID_NAME ); 78 81 … … 94 97 the_port->length = length - 1; 95 98 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 98 105 *id = the_port->Object.id; 99 106 _Thread_Enable_dispatch(); … … 119 126 120 127 rtems_status_code rtems_port_ident( 121 Objects_Namename,128 rtems_name name, 122 129 Objects_Id *id 123 130 ) … … 126 133 _Objects_Name_to_id( 127 134 &_Dual_ported_memory_Information, 128 name,135 &name, 129 136 RTEMS_SEARCH_ALL_NODES, 130 137 id -
cpukit/rtems/src/msg.c
r80e2c29e r3235ad9 23 23 #include <rtems/options.h> 24 24 #include <rtems/states.h> 25 #include <rtems/support.h> 25 26 #include <rtems/thread.h> 26 27 #include <rtems/wkspace.h> … … 49 50 TRUE, 50 51 maximum_message_queues, 51 sizeof( Message_queue_Control ) 52 sizeof( Message_queue_Control ), 53 FALSE, 54 RTEMS_MAXIMUM_NAME_LENGTH 52 55 ); 53 56 } … … 131 134 132 135 rtems_status_code rtems_message_queue_create( 133 Objects_Namename,136 rtems_name name, 134 137 unsigned32 count, 135 138 unsigned32 max_message_size, … … 140 143 register Message_queue_Control *the_message_queue; 141 144 142 if ( ! _Objects_Is_name_valid( name ) )145 if ( !rtems_is_name_valid( name ) ) 143 146 return ( RTEMS_INVALID_NAME ); 144 147 … … 195 198 STATES_WAITING_FOR_MESSAGE ); 196 199 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 ); 199 205 200 206 *id = the_message_queue->Object.id; … … 231 237 232 238 rtems_status_code rtems_message_queue_ident( 233 Objects_Namename,239 rtems_name name, 234 240 unsigned32 node, 235 241 Objects_Id *id 236 242 ) 237 243 { 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 ); 240 250 } 241 251 -
cpukit/rtems/src/msgmp.c
r80e2c29e r3235ad9 33 33 Message_queue_MP_Remote_operations operation, 34 34 Objects_Id message_queue_id, 35 Objects_Namename,35 rtems_name name, 36 36 Objects_Id proxy_id 37 37 ) … … 435 435 MESSAGE_QUEUE_MP_EXTRACT_PROXY, 436 436 the_thread->Wait.id, 437 ( Objects_Name) 0,437 (rtems_name) 0, 438 438 the_thread->Object.id 439 439 ); -
cpukit/rtems/src/part.c
r80e2c29e r3235ad9 15 15 16 16 #include <rtems/system.h> 17 #include <rtems/support.h> 17 18 #include <rtems/address.h> 18 19 #include <rtems/config.h> … … 43 44 TRUE, 44 45 maximum_partitions, 45 sizeof( Partition_Control ) 46 sizeof( Partition_Control ), 47 FALSE, 48 RTEMS_MAXIMUM_NAME_LENGTH 46 49 ); 47 50 … … 70 73 71 74 rtems_status_code rtems_partition_create( 72 Objects_Namename,75 rtems_name name, 73 76 void *starting_address, 74 77 unsigned32 length, … … 80 83 register Partition_Control *the_partition; 81 84 82 if ( ! _Objects_Is_name_valid( name ) )85 if ( !rtems_is_name_valid( name ) ) 83 86 return ( RTEMS_INVALID_NAME ); 84 87 … … 119 122 length / buffer_size, buffer_size ); 120 123 121 _Objects_Open( &_Partition_Information, &the_partition->Object, name );124 _Objects_Open( &_Partition_Information, &the_partition->Object, &name ); 122 125 123 126 *id = the_partition->Object.id; … … 153 156 154 157 rtems_status_code rtems_partition_ident( 155 Objects_Namename,158 rtems_name name, 156 159 unsigned32 node, 157 160 Objects_Id *id 158 161 ) 159 162 { 160 return ( _Objects_Name_to_id( &_Partition_Information, name, node, id ));163 return _Objects_Name_to_id( &_Partition_Information, &name, node, id ); 161 164 } 162 165 -
cpukit/rtems/src/partmp.c
r80e2c29e r3235ad9 31 31 Partition_MP_Remote_operations operation, 32 32 Objects_Id partition_id, 33 Objects_Namename,33 rtems_name name, 34 34 Objects_Id proxy_id 35 35 ) … … 281 281 PARTITION_MP_EXTRACT_PROXY, 282 282 the_thread->Wait.id, 283 ( Objects_Name) 0,283 (rtems_name) 0, 284 284 the_thread->Object.id 285 285 ); -
cpukit/rtems/src/ratemon.c
r80e2c29e r3235ad9 15 15 16 16 #include <rtems/system.h> 17 #include <rtems/support.h> 17 18 #include <rtems/isr.h> 18 19 #include <rtems/object.h> … … 41 42 { 42 43 _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 48 51 ); 49 52 } … … 67 70 68 71 rtems_status_code rtems_rate_monotonic_create( 69 Objects_Namename,72 rtems_name name, 70 73 Objects_Id *id 71 74 ) … … 73 76 Rate_monotonic_Control *the_period; 74 77 75 if ( ! _Objects_Is_name_valid( name ) )78 if ( !rtems_is_name_valid( name ) ) 76 79 return( RTEMS_INVALID_NAME ); 77 80 … … 88 91 the_period->state = RATE_MONOTONIC_INACTIVE; 89 92 90 _Objects_Open( &_Rate_monotonic_Information, &the_period->Object, name );93 _Objects_Open( &_Rate_monotonic_Information, &the_period->Object, &name ); 91 94 92 95 *id = the_period->Object.id; … … 113 116 114 117 rtems_status_code rtems_rate_monotonic_ident( 115 Objects_Namename,118 rtems_name name, 116 119 Objects_Id *id 117 120 ) … … 119 122 return _Objects_Name_to_id( 120 123 &_Rate_monotonic_Information, 121 name,124 &name, 122 125 RTEMS_SEARCH_LOCAL_NODE, 123 126 id -
cpukit/rtems/src/region.c
r80e2c29e r3235ad9 15 15 16 16 #include <rtems/system.h> 17 #include <rtems/support.h> 17 18 #include <rtems/config.h> 18 19 #include <rtems/object.h> … … 39 40 { 40 41 _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 ); 47 50 } 48 51 … … 69 72 70 73 rtems_status_code rtems_region_create( 71 Objects_Namename,74 rtems_name name, 72 75 void *starting_address, 73 76 unsigned32 length, … … 79 82 Region_Control *the_region; 80 83 81 if ( ! _Objects_Is_name_valid( name ) )84 if ( !rtems_is_name_valid( name ) ) 82 85 return ( RTEMS_INVALID_NAME ); 83 86 … … 112 115 &the_region->Wait_queue, attribute_set, STATES_WAITING_FOR_SEGMENT ); 113 116 114 _Objects_Open( &_Region_Information, &the_region->Object, name );117 _Objects_Open( &_Region_Information, &the_region->Object, &name ); 115 118 116 119 *id = the_region->Object.id; … … 137 140 138 141 rtems_status_code rtems_region_ident( 139 Objects_Namename,142 rtems_name name, 140 143 Objects_Id *id 141 144 ) … … 143 146 return _Objects_Name_to_id( 144 147 &_Region_Information, 145 name,148 &name, 146 149 RTEMS_SEARCH_LOCAL_NODE, 147 150 id -
cpukit/rtems/src/regionmp.c
r80e2c29e r3235ad9 31 31 Region_MP_Remote_operations operation, 32 32 Objects_Id region_id, 33 Objects_Namename,33 rtems_name name, 34 34 Objects_Id proxy_id 35 35 ) … … 290 290 REGION_MP_EXTRACT_PROXY, 291 291 the_thread->Wait.id, 292 ( Objects_Name) 0,292 (rtems_name) 0, 293 293 the_thread->Object.id 294 294 ); -
cpukit/rtems/src/rtemstimer.c
r80e2c29e r3235ad9 15 15 16 16 #include <rtems/system.h> 17 #include <rtems/support.h> 17 18 #include <rtems/object.h> 18 19 #include <rtems/thread.h> … … 38 39 { 39 40 _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 45 48 ); 46 49 } … … 63 66 64 67 rtems_status_code rtems_timer_create( 65 Objects_Namename,68 rtems_name name, 66 69 Objects_Id *id 67 70 ) … … 69 72 Timer_Control *the_timer; 70 73 71 if ( ! _Objects_Is_name_valid( name ) )74 if ( !rtems_is_name_valid( name ) ) 72 75 return ( RTEMS_INVALID_NAME ); 73 76 … … 83 86 the_timer->the_class = TIMER_DORMANT; 84 87 85 _Objects_Open( &_Timer_Information, &the_timer->Object, name );88 _Objects_Open( &_Timer_Information, &the_timer->Object, &name ); 86 89 87 90 *id = the_timer->Object.id; … … 108 111 109 112 rtems_status_code rtems_timer_ident( 110 Objects_Namename,113 rtems_name name, 111 114 Objects_Id *id 112 115 ) … … 114 117 return _Objects_Name_to_id( 115 118 &_Timer_Information, 116 name,119 &name, 117 120 RTEMS_SEARCH_LOCAL_NODE, 118 121 id -
cpukit/rtems/src/sem.c
r80e2c29e r3235ad9 28 28 29 29 #include <rtems/system.h> 30 #include <rtems/support.h> 30 31 #include <rtems/attr.h> 31 32 #include <rtems/config.h> … … 57 58 _Objects_Initialize_information( 58 59 &_Semaphore_Information, 59 60 OBJECTS_RTEMS_SEMAPHORES, 60 61 TRUE, 61 62 maximum_semaphores, 62 sizeof( Semaphore_Control ) 63 sizeof( Semaphore_Control ), 64 FALSE, 65 RTEMS_MAXIMUM_NAME_LENGTH 63 66 ); 64 67 } … … 84 87 85 88 rtems_status_code rtems_semaphore_create( 86 Objects_Namename,89 rtems_name name, 87 90 unsigned32 count, 88 91 rtems_attribute attribute_set, … … 92 95 register Semaphore_Control *the_semaphore; 93 96 94 if ( ! _Objects_Is_name_valid( name ) )97 if ( !rtems_is_name_valid( name ) ) 95 98 return ( RTEMS_INVALID_NAME ); 96 99 … … 148 151 attribute_set, STATES_WAITING_FOR_SEMAPHORE ); 149 152 150 _Objects_Open( &_Semaphore_Information, &the_semaphore->Object, name );153 _Objects_Open( &_Semaphore_Information, &the_semaphore->Object, &name ); 151 154 152 155 *id = the_semaphore->Object.id; … … 182 185 183 186 rtems_status_code rtems_semaphore_ident( 184 Objects_Namename,187 rtems_name name, 185 188 unsigned32 node, 186 189 Objects_Id *id 187 190 ) 188 191 { 189 return( _Objects_Name_to_id( &_Semaphore_Information, name, node, id ) );192 return( _Objects_Name_to_id( &_Semaphore_Information, &name, node, id ) ); 190 193 } 191 194 -
cpukit/rtems/src/semmp.c
r80e2c29e r3235ad9 32 32 Semaphore_MP_Remote_operations operation, 33 33 Objects_Id semaphore_id, 34 Objects_Namename,34 rtems_name name, 35 35 Objects_Id proxy_id 36 36 ) … … 287 287 SEMAPHORE_MP_EXTRACT_PROXY, 288 288 the_thread->Wait.id, 289 ( Objects_Name) 0,289 (rtems_name) 0, 290 290 the_thread->Object.id 291 291 ); -
cpukit/rtems/src/taskmp.c
r80e2c29e r3235ad9 32 32 RTEMS_tasks_MP_Remote_operations operation, 33 33 Objects_Id task_id, 34 Objects_Namename34 rtems_name name 35 35 ) 36 36 { -
cpukit/rtems/src/tasks.c
r80e2c29e r3235ad9 15 15 16 16 #include <rtems/system.h> 17 #include <rtems/support.h> 17 18 #include <rtems/modes.h> 18 19 #include <rtems/object.h> … … 49 50 50 51 rtems_status_code rtems_task_create( 51 Objects_Namename,52 rtems_name name, 52 53 rtems_task_priority initial_priority, 53 54 unsigned32 stack_size, … … 63 64 rtems_attribute the_attribute_set; 64 65 65 if ( ! _Objects_Is_name_valid( name ) )66 if ( !rtems_is_name_valid( name ) ) 66 67 return ( RTEMS_INVALID_NAME ); 67 68 … … 157 158 _ASR_Initialize( &the_thread->Signal ); 158 159 159 _Objects_Open( &_Thread_Information, &the_thread->Object, name );160 _Objects_Open( &_Thread_Information, &the_thread->Object, &name ); 160 161 161 162 *id = the_thread->Object.id; … … 193 194 194 195 rtems_status_code rtems_task_ident( 195 Objects_Namename,196 rtems_name name, 196 197 unsigned32 node, 197 198 Objects_Id *id … … 199 200 { 200 201 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 ) ); 202 203 203 204 *id = _Thread_Executing->Object.id;
Note: See TracChangeset
for help on using the changeset viewer.