forked from Imagelibrary/rtems
2003-02-03 Joel Sherrill <joel@OARcorp.com>
PR 338/filesystem * include/rtems/io.h, src/io.c: Side-effect of fixing reentrancy problem with rtems_io_lookup_name() (API change).
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2003-02-03 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
PR 338/filesystem
|
||||
* include/rtems/io.h, src/io.c: Side-effect of fixing reentrancy
|
||||
problem with rtems_io_lookup_name() (API change).
|
||||
|
||||
2002-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||
|
||||
* Makefile.am: Don't create $ARCH as side-effect of compilation.
|
||||
|
||||
@@ -159,7 +159,7 @@ rtems_status_code rtems_io_register_name(
|
||||
|
||||
rtems_status_code rtems_io_lookup_name(
|
||||
const char *name,
|
||||
rtems_driver_name_t **device_info
|
||||
rtems_driver_name_t *device_info
|
||||
);
|
||||
|
||||
|
||||
|
||||
@@ -238,46 +238,6 @@ rtems_status_code rtems_io_register_name(
|
||||
}
|
||||
#endif
|
||||
|
||||
/*PAGE
|
||||
*
|
||||
* rtems_io_lookup_name
|
||||
*
|
||||
* Find what driver "owns" this name
|
||||
*
|
||||
* Input Paramters:
|
||||
* name - name to lookup the associated device
|
||||
*
|
||||
* Output Parameters:
|
||||
* device_info - device associate with name
|
||||
* RTEMS_SUCCESSFUL - if successful
|
||||
* error code - if unsuccessful
|
||||
*/
|
||||
|
||||
#if 0
|
||||
rtems_status_code rtems_io_lookup_name(
|
||||
const char *name,
|
||||
rtems_driver_name_t **device_info
|
||||
)
|
||||
{
|
||||
rtems_driver_name_t *np;
|
||||
unsigned32 index;
|
||||
|
||||
for( index=0, np = _IO_Driver_name_table ;
|
||||
index < _IO_Number_of_devices ;
|
||||
index++, np++ )
|
||||
if (np->device_name)
|
||||
if (strncmp(np->device_name, name, np->device_name_length) == 0)
|
||||
{
|
||||
*device_info = np;
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
*device_info = 0;
|
||||
return RTEMS_UNSATISFIED;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/*PAGE
|
||||
*
|
||||
* rtems_io_initialize
|
||||
|
||||
Reference in New Issue
Block a user