RTEMS I/O manager
Joel Sherrill
joel.sherrill at oarcorp.com
Fri Jun 22 15:48:57 UTC 2007
hwulf at et-inf.fho-emden.de wrote:
> Dear ladies and gentlemen,
>
> I'm trying to understand the inner workings of the RTEMS I/O manager.
> In the function rtems_io_initialize() in the source code file io.c
> there's called an initialization routine. But where is the assignment
> of this initialization routine (the assignment of
> _IO_Driver_address_table[major].initialization) ?
>
It is part of RTEMS Configuration and is normally done using
rtems/confdefs.h. See
http://www.rtems.com/onlinedocs/releases/rtemsdocs-4.7.1/share/rtems/html/c_user/c_user00377.html
> Thank you very much and kind regards,
> Hank
>
> Source code for rtems_io_initialize():
> ======================================
> rtems_status_code rtems_io_initialize(
> rtems_device_major_number major,
> rtems_device_minor_number minor,
> void *argument
> )
> {
> rtems_device_driver_entry callout;
>
> if ( major >= _IO_Number_of_drivers )
> return RTEMS_INVALID_NUMBER;
>
> callout = _IO_Driver_address_table[major].initialization;
> return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
> }
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>
More information about the users
mailing list