source: rtems/cpukit/sapi/src/ioclose.c @ 599d71f

Last change on this file since 599d71f was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

Change all references of rtems.com to rtems.org.

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