source: rtems/cpukit/libfs/src/imfs/imfs_init.c @ dace9ed1

4.115
Last change on this file since dace9ed1 was dace9ed1, checked in by Jennifer Averett <Jennifer.Averett@…>, on 06/29/10 at 19:37:28

2010-06-29 Jennifer.Averett <Jennifer.Averett@…>

  • libcsupport/include/rtems/libio.h, libfs/Makefile.am, libfs/src/defaults/default_chown.c, libfs/src/defaults/default_evalpath.c, libfs/src/defaults/default_freenode.c, libfs/src/defaults/default_fsmount.c, libfs/src/defaults/default_link.c, libfs/src/defaults/default_mount.c, libfs/src/defaults/default_rename.c, libfs/src/defaults/default_statvfs.c, libfs/src/defaults/default_symlink.c, libfs/src/defaults/default_unlink.c, libfs/src/defaults/default_utime.c, libfs/src/devfs/devfs_init.c, libfs/src/dosfs/msdos_init.c, libfs/src/imfs/imfs_init.c, libfs/src/nfsclient/src/nfs.c, libfs/src/rfs/rtems-rfs-rtems.c, wrapup/Makefile.am: Fixed typo in default names. Added default methods into filesystem tables.
  • libfs/src/defaults/default_close.c, libfs/src/defaults/default_evaluate_link.c, libfs/src/defaults/default_fpathconf.c, libfs/src/defaults/default_fsunmount.c, libfs/src/defaults/default_open.c, libfs/src/defaults/default_unmount.c: New files.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup LibFSIMFS
5 *
6 * @brief IMFS initialization.
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-1999.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.com/license/LICENSE.
16 *
17 *  $Id$
18 */
19
20#if HAVE_CONFIG_H
21#include "config.h"
22#endif
23
24#include <rtems/libio_.h>
25
26#include "imfs.h"
27
28const rtems_filesystem_operations_table IMFS_ops = {
29  .evalpath_h = IMFS_eval_path,
30  .evalformake_h = IMFS_evaluate_for_make,
31  .link_h = IMFS_link,
32  .unlink_h = IMFS_unlink,
33  .node_type_h = IMFS_node_type,
34  .mknod_h = IMFS_mknod,
35  .chown_h = IMFS_chown,
36  .freenod_h = IMFS_freenodinfo,
37  .mount_h = IMFS_mount,
38  .fsmount_me_h = IMFS_initialize,
39  .unmount_h = IMFS_unmount,
40  .fsunmount_me_h = IMFS_fsunmount,
41  .utime_h = IMFS_utime,
42  .eval_link_h = IMFS_evaluate_link,
43  .symlink_h = IMFS_symlink,
44  .readlink_h = IMFS_readlink,
45  .rename_h = IMFS_rename,
46  .statvfs_h = rtems_filesystem_default_statvfs
47};
48
49int IMFS_initialize(
50  rtems_filesystem_mount_table_entry_t *mt_entry,
51  const void                           *data
52)
53{
54  return IMFS_initialize_support(
55    mt_entry,
56    &IMFS_ops,
57    &IMFS_memfile_handlers,
58    &IMFS_directory_handlers,
59    &rtems_filesystem_null_handlers  /* for fifos */
60  );
61}
Note: See TracBrowser for help on using the repository browser.