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

4.11
Last change on this file since fed66f99 was fed66f99, checked in by Sebastian Huber <sebastian.huber@…>, on May 14, 2012 at 1:19:20 PM

Filesystem: Add shared device IO support

The device IO file system support in IMFS, devFS, and RFS uses now a
shared implementation.

  • Property mode set to 100644
File size: 542 bytes
RevLine 
[d40da79b]1/*
2 *  The license and distribution terms for this file may be
3 *  found in the file LICENSE in this distribution or at
4 *  http://www.rtems.com/license/LICENSE.
5 */
6
7#if HAVE_CONFIG_H
[fed66f99]8  #include "config.h"
[d40da79b]9#endif
10
11#include "devfs.h"
12
[fed66f99]13#include <rtems/deviceio.h>
14
[d40da79b]15int devFS_open(
16  rtems_libio_t *iop,
17  const char    *pathname,
[3b7c123]18  int            oflag,
19  mode_t         mode
[d40da79b]20)
21{
[3b7c123]22  const devFS_node *np = iop->pathinfo.node_access;
[d40da79b]23
[fed66f99]24  return rtems_deviceio_open(
25    iop,
26    pathname,
27    oflag,
28    mode,
[d40da79b]29    np->major,
[fed66f99]30    np->minor
[d40da79b]31  );
32}
Note: See TracBrowser for help on using the repository browser.