/** * @file * * @ingroup LibFSIMFS * * @brief Mini-IMFS initialization. */ /* * COPYRIGHT (c) 1989-1999. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. * * $Id$ */ #if HAVE_CONFIG_H #include "config.h" #endif #include #include "imfs.h" static const rtems_filesystem_operations_table miniIMFS_ops = { .evalpath_h = IMFS_eval_path, .evalformake_h = IMFS_evaluate_for_make, .link_h = NULL, .unlink_h = NULL, .node_type_h = IMFS_node_type, .mknod_h = IMFS_mknod, .chown_h = NULL, .freenod_h = NULL, .mount_h = IMFS_mount, .fsmount_me_h = miniIMFS_initialize, .unmount_h = NULL, .fsunmount_me_h = NULL, .utime_h = NULL, .eval_link_h = NULL, .symlink_h = NULL, .readlink_h = NULL, .rename_h = NULL, .statvfs_h = NULL }; int miniIMFS_initialize( rtems_filesystem_mount_table_entry_t *mt_entry, const void *data ) { return IMFS_initialize_support( mt_entry, &miniIMFS_ops, &rtems_filesystem_null_handlers, /* for memfiles */ &rtems_filesystem_null_handlers, /* for directories */ &rtems_filesystem_null_handlers /* for fifos */ ); }