4.115
Rev | Line | |
---|
[4c98a3e] | 1 | /** |
---|
| 2 | * @file |
---|
| 3 | * |
---|
| 4 | * @brief Writing for The IO Manager |
---|
[9c556023] | 5 | * |
---|
[4c98a3e] | 6 | * @ingroup ClassicIO |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | /* |
---|
[9c556023] | 10 | * COPYRIGHT (c) 1989-2007. |
---|
| 11 | * On-Line Applications Research Corporation (OAR). |
---|
| 12 | * |
---|
| 13 | * The license and distribution terms for this file may be |
---|
| 14 | * found in the file LICENSE in this distribution or at |
---|
| 15 | * http://www.rtems.com/license/LICENSE. |
---|
| 16 | */ |
---|
| 17 | |
---|
| 18 | #if HAVE_CONFIG_H |
---|
| 19 | #include "config.h" |
---|
| 20 | #endif |
---|
| 21 | |
---|
| 22 | #include <rtems/system.h> |
---|
| 23 | #include <rtems/io.h> |
---|
| 24 | |
---|
| 25 | rtems_status_code rtems_io_write( |
---|
| 26 | rtems_device_major_number major, |
---|
| 27 | rtems_device_minor_number minor, |
---|
| 28 | void *argument |
---|
| 29 | ) |
---|
| 30 | { |
---|
| 31 | rtems_device_driver_entry callout; |
---|
| 32 | |
---|
| 33 | if ( major >= _IO_Number_of_drivers ) |
---|
| 34 | return RTEMS_INVALID_NUMBER; |
---|
| 35 | |
---|
| 36 | callout = _IO_Driver_address_table[major].write_entry; |
---|
| 37 | return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL; |
---|
| 38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.