source: rtems/cpukit/libfs/src/devfs/devopen.c @ 339069fc

5
Last change on this file since 339069fc was 339069fc, checked in by Sebastian Huber <sebastian.huber@…>, on Dec 13, 2017 at 7:02:09 AM

devfs: Include <rtems/devfs.h>

Prepare for header file move to common include directory.

Update #3254.

  • Property mode set to 100644
File size: 670 bytes
Line 
1/**
2 * @file
3 *
4 * @brief Maps Open Operation to rtems_io_open
5 * @ingroup DevFsDeviceTable Define Device Table Type
6 */
7
8/*
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.org/license/LICENSE.
12 */
13
14#if HAVE_CONFIG_H
15  #include "config.h"
16#endif
17
18#include <rtems/devfs.h>
19
20#include <rtems/deviceio.h>
21
22int devFS_open(
23  rtems_libio_t *iop,
24  const char    *pathname,
25  int            oflag,
26  mode_t         mode
27)
28{
29  const devFS_node *np = iop->pathinfo.node_access;
30
31  return rtems_deviceio_open(
32    iop,
33    pathname,
34    oflag,
35    mode,
36    np->major,
37    np->minor
38  );
39}
Note: See TracBrowser for help on using the repository browser.