Ignore:
Timestamp:
May 14, 2012, 1:19:20 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
53da07e
Parents:
df01da67
git-author:
Sebastian Huber <sebastian.huber@…> (05/14/12 13:19:20)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/15/12 08:01:42)
Message:

Filesystem: Add shared device IO support

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/devfs/devopen.c

    rdf01da67 rfed66f99  
    66
    77#if HAVE_CONFIG_H
    8 #include "config.h"
     8  #include "config.h"
    99#endif
    1010
    11 #include <rtems.h>
    12 #include <rtems/io.h>
     11#include "devfs.h"
    1312
    14 #include "devfs.h"
     13#include <rtems/deviceio.h>
    1514
    1615int devFS_open(
     
    2120)
    2221{
    23   rtems_libio_open_close_args_t  args;
    24   rtems_status_code              status;
    2522  const devFS_node *np = iop->pathinfo.node_access;
    2623
    27   args.iop   = iop;
    28   args.flags = iop->flags;
    29   args.mode  = mode;
    30 
    31   status = rtems_io_open(
     24  return rtems_deviceio_open(
     25    iop,
     26    pathname,
     27    oflag,
     28    mode,
    3229    np->major,
    33     np->minor,
    34     (void *) &args
     30    np->minor
    3531  );
    36 
    37   return rtems_deviceio_errno(status);
    3832}
Note: See TracChangeset for help on using the changeset viewer.