source:
rtems/cpukit/libfs/src/devfs/devopen.c
@
c499856
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47 | |
---|---|
|
|
File size: 664 bytes |
Rev | Line | |
---|---|---|
[9bff3752] | 1 | /** |
2 | * @file | |
3 | * | |
4 | * @brief Maps Open Operation to rtems_io_open | |
5 | * @ingroup DevFsDeviceTable Define Device Table Type | |
6 | */ | |
7 | ||
[d40da79b] | 8 | /* |
9 | * The license and distribution terms for this file may be | |
10 | * found in the file LICENSE in this distribution or at | |
[c499856] | 11 | * http://www.rtems.org/license/LICENSE. |
[d40da79b] | 12 | */ |
13 | ||
14 | #if HAVE_CONFIG_H | |
[fed66f99] | 15 | #include "config.h" |
[d40da79b] | 16 | #endif |
17 | ||
18 | #include "devfs.h" | |
19 | ||
[fed66f99] | 20 | #include <rtems/deviceio.h> |
21 | ||
[d40da79b] | 22 | int devFS_open( |
23 | rtems_libio_t *iop, | |
24 | const char *pathname, | |
[3b7c123] | 25 | int oflag, |
26 | mode_t mode | |
[d40da79b] | 27 | ) |
28 | { | |
[3b7c123] | 29 | const devFS_node *np = iop->pathinfo.node_access; |
[d40da79b] | 30 | |
[fed66f99] | 31 | return rtems_deviceio_open( |
32 | iop, | |
33 | pathname, | |
34 | oflag, | |
35 | mode, | |
[d40da79b] | 36 | np->major, |
[fed66f99] | 37 | np->minor |
[d40da79b] | 38 | ); |
39 | } |
Note: See TracBrowser
for help on using the repository browser.