Last change
on this file since a7d1992c was
fed66f99,
checked in by Sebastian Huber <sebastian.huber@…>, on 05/14/12 at 13:19:20
|
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:
487 bytes
|
Line | |
---|
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 |
---|
8 | #include "config.h" |
---|
9 | #endif |
---|
10 | |
---|
11 | #include "devfs.h" |
---|
12 | |
---|
13 | #include <rtems/deviceio.h> |
---|
14 | |
---|
15 | ssize_t devFS_read( |
---|
16 | rtems_libio_t *iop, |
---|
17 | void *buffer, |
---|
18 | size_t count |
---|
19 | ) |
---|
20 | { |
---|
21 | const devFS_node *np = iop->pathinfo.node_access; |
---|
22 | |
---|
23 | return rtems_deviceio_read( iop, buffer, count, np->major, np->minor ); |
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.