source: rtems/cpukit/sapi/src/ioclose.c @ 3db9c820

Last change on this file since 3db9c820 was 3db9c820, checked in by Sebastian Huber <sebastian.huber@…>, on 11/28/20 at 10:16:28

sapi: Canonicalize @defgroup and @file comments

Adjust group identifier and names to be in line with a common pattern.
Use common phrases for the group and file brief descriptions.

Update #3706.

  • Property mode set to 100644
File size: 893 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup RTEMSImplClassicIO
5 *
6 * @brief This source file contains the implementation of rtems_io_close().
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#ifdef HAVE_CONFIG_H
21#include "config.h"
22#endif
23
24#include <rtems/ioimpl.h>
25
26rtems_status_code rtems_io_close(
27  rtems_device_major_number  major,
28  rtems_device_minor_number  minor,
29  void                      *argument
30)
31{
32  rtems_device_driver_entry callout;
33
34  if ( major >= _IO_Number_of_drivers )
35    return RTEMS_INVALID_NUMBER;
36
37  callout = _IO_Driver_address_table[major].close_entry;
38  return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
39}
Note: See TracBrowser for help on using the repository browser.