From 0161b93d50d6915116c4ca9d1cad42ef89a4ad9e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 3 Mar 2020 19:23:53 +0100 Subject: 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. --- cpukit/libfs/src/devfs/devfs_show.c | 51 ------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 cpukit/libfs/src/devfs/devfs_show.c (limited to 'cpukit/libfs/src/devfs/devfs_show.c') diff --git a/cpukit/libfs/src/devfs/devfs_show.c b/cpukit/libfs/src/devfs/devfs_show.c deleted file mode 100644 index 07e67c6f51..0000000000 --- a/cpukit/libfs/src/devfs/devfs_show.c +++ /dev/null @@ -1,51 +0,0 @@ -/** - * @file - * - * @brief Retrieves and Prints all the Device Registered in System - * @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 - -#include - -void devFS_Show(void) -{ - rtems_filesystem_location_info_t *rootloc = &rtems_filesystem_root->location; - - if (rootloc->mt_entry->ops == &devFS_ops) { - const devFS_data *data = devFS_get_data(rootloc); - size_t i = 0; - size_t n = data->count; - devFS_node *nodes = data->nodes; - - for (i = 0; i < n; ++i) { - devFS_node *current = nodes + i; - - if (current->name != NULL) { - size_t j = 0; - size_t m = current->namelen; - - printk("/"); - for (j = 0; j < m; ++j) { - printk("%c", current->name [j]); - } - printk( - " %lu %lu\n", - (unsigned long) current->major, - (unsigned long) current->minor - ); - } - } - } -} -- cgit v1.2.3