source: rtems/cpukit/sapi/src/iocontrol.c @ f68401e

4.11
Last change on this file since f68401e was 4c98a3e, checked in by Christopher Kerl <zargyyoyo@…>, on Dec 7, 2012 at 2:49:54 PM

sapi misc: Clean up Doxygen GCI task #1

http://www.google-melange.com/gci/task/view/google/gci2012/8011204

  • Property mode set to 100644
File size: 824 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Control for The IO Manager
5 *
6 * @ingroup ClassicIO
7 */
8
9/*
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
25rtems_status_code rtems_io_control(
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].control_entry;
37  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
38}
Note: See TracBrowser for help on using the repository browser.