summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/devfs/devstat.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-03-03 19:23:53 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-03-09 17:26:54 +0100
commit0161b93d50d6915116c4ca9d1cad42ef89a4ad9e (patch)
tree92519deb9ceecf46fa298e94c5ae6dc11672bf01 /cpukit/libfs/src/devfs/devstat.c
parentimfs: Simplify code generation (diff)
downloadrtems-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/devstat.c')
-rw-r--r--cpukit/libfs/src/devfs/devstat.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/cpukit/libfs/src/devfs/devstat.c b/cpukit/libfs/src/devfs/devstat.c
deleted file mode 100644
index c88f729924..0000000000
--- a/cpukit/libfs/src/devfs/devstat.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * @file
- *
- * @brief Gets the Device File Information
- * @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>
-
-int devFS_stat(
- const rtems_filesystem_location_info_t *loc,
- struct stat *buf
-)
-{
- int rv = 0;
- const devFS_node *the_dev = loc->node_access;
-
- if (the_dev != NULL) {
- buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
- buf->st_mode = the_dev->mode;
- } else {
- rv = rtems_filesystem_default_fstat(loc, buf);
- }
-
- return rv;
-}