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

4.115
Last change on this file since 241f4c96 was 241f4c96, checked in by Sebastian Huber <sebastian.huber@…>, on 06/08/10 at 10:25:46

2010-06-08 Sebastian Huber <sebastian.huber@…>

  • libfs/src/imfs/fifoimfs_init.c: New file.
  • libfs/Makefile.am: Reflect change above.
  • libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_eval.c, libfs/src/imfs/imfs_init.c, libfs/src/imfs/imfs_initsupp.c, libfs/src/imfs/miniimfs_init.c, libfs/src/pipe/fifo.c, libfs/src/pipe/pipe.c, libfs/src/pipe/pipe.h: Pipe support is now link-time optional.
  • sapi/include/confdefs.h: Reflect changes above.
  • 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 = NULL
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.