diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-03-03 19:23:53 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-03-09 17:26:54 +0100 |
commit | 0161b93d50d6915116c4ca9d1cad42ef89a4ad9e (patch) | |
tree | 92519deb9ceecf46fa298e94c5ae6dc11672bf01 /cpukit/libfs/src/devfs/devwrite.c | |
parent | imfs: Simplify code generation (diff) | |
download | rtems-0161b93d50d6915116c4ca9d1cad42ef89a4ad9e.tar.bz2 |
imfs: Replace devfs with an IMFS specialization
Add a simplified path evaluation function IMFS_eval_path_devfs() for a
device only IMFS configuration.
The code size can be further reduced by the application if it disables
the support for legacy IO drivers via:
#define CONFIGURE_IMFS_DISABLE_MKNOD
#define CONFIGURE_IMFS_DISABLE_MKNOD_DEVICE
Obsolete CONFIGURE_MAXIMUM_DEVICES. Remove BSP_MAXIMUM_DEVICES.
Update #3894.
Update #3898.
Diffstat (limited to 'cpukit/libfs/src/devfs/devwrite.c')
-rw-r--r-- | cpukit/libfs/src/devfs/devwrite.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/cpukit/libfs/src/devfs/devwrite.c b/cpukit/libfs/src/devfs/devwrite.c deleted file mode 100644 index 7fd8006776..0000000000 --- a/cpukit/libfs/src/devfs/devwrite.c +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @file - * - * @brief Writes Operation to rtems_io_write - * @ingroup DevFsDeviceTable Define Device Table Type - */ - -/* - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ - -#if HAVE_CONFIG_H - #include "config.h" -#endif - -#include <rtems/devfs.h> - -#include <rtems/deviceio.h> - -ssize_t devFS_write( - rtems_libio_t *iop, - const void *buffer, - size_t count -) -{ - const devFS_node *np = iop->pathinfo.node_access; - - return rtems_deviceio_write( iop, buffer, count, np->major, np->minor ); -} |