Changeset 61361688 in rtems
- Timestamp:
- 08/22/95 13:56:54 (28 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- b2c491a0
- Parents:
- 2a0b721
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/score/src/object.c
r2a0b721 r61361688 162 162 ) 163 163 { 164 Objects_Name *names; 165 unsigned32 index; 164 boolean search_local_node; 165 Objects_Control **objects; 166 Objects_Control *the_object; 167 unsigned32 index; 166 168 167 169 if ( name == 0 ) 168 170 return( RTEMS_INVALID_NAME ); 169 171 170 if ( (information->maximum != 0) && 171 (node == RTEMS_SEARCH_ALL_NODES || 172 node == RTEMS_SEARCH_LOCAL_NODE || 173 _Objects_Is_local_node( node )) ) { 174 for ( names = information->name_table, index = 1; 175 index <= information->maximum; 176 index++ 177 ) 178 if ( name == names[ index ] ) { 179 *id = _Objects_Build_id( 180 information->the_class, 181 _Objects_Local_node, 182 index 183 ); 172 search_local_node = FALSE; 173 174 if ( information->maximum != 0 && 175 (node == RTEMS_SEARCH_ALL_NODES || node == RTEMS_SEARCH_LOCAL_NODE || 176 _Objects_Is_local_node( node ) ) ) 177 search_local_node = TRUE; 178 179 if ( search_local_node ) { 180 objects = information->local_table; 181 182 for ( index = 1; index <= information->maximum; index++ ) { 183 184 the_object = objects[ index ]; 185 186 if ( !the_object || !the_object->name ) 187 continue; 188 189 if ( name == *the_object->name ) { 190 *id = the_object->id; 184 191 return( RTEMS_SUCCESSFUL ); 185 192 } 193 } 186 194 } 187 195 -
cpukit/score/src/object.c
r2a0b721 r61361688 162 162 ) 163 163 { 164 Objects_Name *names; 165 unsigned32 index; 164 boolean search_local_node; 165 Objects_Control **objects; 166 Objects_Control *the_object; 167 unsigned32 index; 166 168 167 169 if ( name == 0 ) 168 170 return( RTEMS_INVALID_NAME ); 169 171 170 if ( (information->maximum != 0) && 171 (node == RTEMS_SEARCH_ALL_NODES || 172 node == RTEMS_SEARCH_LOCAL_NODE || 173 _Objects_Is_local_node( node )) ) { 174 for ( names = information->name_table, index = 1; 175 index <= information->maximum; 176 index++ 177 ) 178 if ( name == names[ index ] ) { 179 *id = _Objects_Build_id( 180 information->the_class, 181 _Objects_Local_node, 182 index 183 ); 172 search_local_node = FALSE; 173 174 if ( information->maximum != 0 && 175 (node == RTEMS_SEARCH_ALL_NODES || node == RTEMS_SEARCH_LOCAL_NODE || 176 _Objects_Is_local_node( node ) ) ) 177 search_local_node = TRUE; 178 179 if ( search_local_node ) { 180 objects = information->local_table; 181 182 for ( index = 1; index <= information->maximum; index++ ) { 183 184 the_object = objects[ index ]; 185 186 if ( !the_object || !the_object->name ) 187 continue; 188 189 if ( name == *the_object->name ) { 190 *id = the_object->id; 184 191 return( RTEMS_SUCCESSFUL ); 185 192 } 193 } 186 194 } 187 195
Note: See TracChangeset
for help on using the changeset viewer.