source: rtems/cpukit/libfs/src/imfs/fifoimfs_init.c @ 8f7b8f7b

4.115
Last change on this file since 8f7b8f7b was 8f7b8f7b, checked in by Joel Sherrill <joel.sherrill@…>, on 07/14/10 at 15:44:44

2010-07-14 Joel Sherrill <joel.sherrill@…>

  • libfs/Makefile.am: Remove reference to imfs_free.c, wrapup/Makefile.am: Split devfs into its own library.
  • libfs/src/imfs/fifoimfs_init.c, libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_init.c, libfs/src/rfs/rtems-rfs-rtems.c: Use default freenode implementation.
  • libfs/src/imfs/imfs_free.c: Removed.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup LibFSIMFS
5 *
6 * @brief IMFS without fifo support initialization.
7 */
8
9/*
10 * Copyright (c) 2010
11 * embedded brains GmbH
12 * Obere Lagerstr. 30
13 * D-82178 Puchheim
14 * Germany
15 * <rtems@embedded-brains.de>
16 *
17 * The license and distribution terms for this file may be
18 * found in the file LICENSE in this distribution or at
19 * http://www.rtems.com/license/LICENSE.
20 */
21
22#if HAVE_CONFIG_H
23#include "config.h"
24#endif
25
26#include "imfs.h"
27
28const rtems_filesystem_operations_table fifoIMFS_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 = rtems_filesystem_default_freenode,
37  .mount_h = IMFS_mount,
38  .fsmount_me_h = fifoIMFS_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 fifoIMFS_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    &fifoIMFS_ops,
57    &IMFS_memfile_handlers,
58    &IMFS_directory_handlers,
59    &IMFS_fifo_handlers
60  );
61}
Note: See TracBrowser for help on using the repository browser.