Changeset 590cae7 in rtems


Ignore:
Timestamp:
Feb 3, 2003, 11:58:21 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
f4ab3d3
Parents:
97aaa2a
Message:

2003-02-03 Joel Sherrill <joel@…>

PR 338/filesystem

  • include/rtems/io.h, src/io.c: Side-effect of fixing reentrancy problem with rtems_io_lookup_name() (API change).
Location:
cpukit/sapi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/ChangeLog

    r97aaa2a r590cae7  
     12003-02-03      Joel Sherrill <joel@OARcorp.com>
     2
     3        PR 338/filesystem
     4        * include/rtems/io.h, src/io.c: Side-effect of fixing reentrancy
     5        problem with rtems_io_lookup_name() (API change).
     6
    172002-12-12      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • cpukit/sapi/include/rtems/io.h

    r97aaa2a r590cae7  
    160160rtems_status_code rtems_io_lookup_name(
    161161    const char           *name,
    162     rtems_driver_name_t **device_info
     162    rtems_driver_name_t  *device_info
    163163);
    164164
  • cpukit/sapi/src/io.c

    r97aaa2a r590cae7  
    241241/*PAGE
    242242 *
    243  *  rtems_io_lookup_name
    244  *
    245  *  Find what driver "owns" this name
    246  *
    247  *  Input Paramters:
    248  *    name - name to lookup the associated device
    249  *
    250  *  Output Parameters:
    251  *    device_info      - device associate with name
    252  *    RTEMS_SUCCESSFUL - if successful
    253  *    error code       - if unsuccessful
    254  */
    255 
    256 #if 0
    257 rtems_status_code rtems_io_lookup_name(
    258     const char           *name,
    259     rtems_driver_name_t **device_info
    260 )
    261 {
    262     rtems_driver_name_t *np;
    263     unsigned32 index;
    264 
    265     for( index=0, np = _IO_Driver_name_table ;
    266          index < _IO_Number_of_devices ;
    267          index++, np++ )
    268         if (np->device_name)
    269             if (strncmp(np->device_name, name, np->device_name_length) == 0)
    270             {               
    271                 *device_info = np;
    272                 return RTEMS_SUCCESSFUL;
    273             }
    274    
    275     *device_info = 0;
    276     return RTEMS_UNSATISFIED;
    277 }
    278 #endif
    279 
    280 
    281 /*PAGE
    282  *
    283243 *  rtems_io_initialize
    284244 *
Note: See TracChangeset for help on using the changeset viewer.