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

4.115
Last change on this file since eb77534 was eb77534, checked in by Sebastian Huber <sebastian.huber@…>, on 02/09/15 at 14:37:00

Filesystem: Delete unused fsmountme_h handler

  • Property mode set to 100644
File size: 1.6 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.org/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  .lock_h = rtems_filesystem_default_lock,
30  .unlock_h = rtems_filesystem_default_unlock,
31  .eval_path_h = IMFS_eval_path,
32  .link_h = IMFS_link,
33  .are_nodes_equal_h = rtems_filesystem_default_are_nodes_equal,
34  .mknod_h = IMFS_mknod,
35  .rmnod_h = IMFS_rmnod,
36  .fchmod_h = IMFS_fchmod,
37  .chown_h = IMFS_chown,
38  .clonenod_h = IMFS_node_clone,
39  .freenod_h = IMFS_node_free,
40  .mount_h = IMFS_mount,
41  .unmount_h = IMFS_unmount,
42  .fsunmount_me_h = IMFS_fsunmount,
43  .utime_h = IMFS_utime,
44  .symlink_h = IMFS_symlink,
45  .readlink_h = IMFS_readlink,
46  .rename_h = IMFS_rename,
47  .statvfs_h = rtems_filesystem_default_statvfs
48};
49
50static const IMFS_node_control *const
51  IMFS_fifo_node_controls [IMFS_TYPE_COUNT] = {
52  [IMFS_DIRECTORY] = &IMFS_node_control_directory,
53  [IMFS_DEVICE] = &IMFS_node_control_device,
54  [IMFS_MEMORY_FILE] = &IMFS_node_control_memfile,
55  [IMFS_FIFO] = &IMFS_node_control_fifo
56};
57
58int fifoIMFS_initialize(
59  rtems_filesystem_mount_table_entry_t *mt_entry,
60  const void *data
61)
62{
63  return IMFS_initialize_support(
64    mt_entry,
65    &fifoIMFS_ops,
66    IMFS_fifo_node_controls
67  );
68}
Note: See TracBrowser for help on using the repository browser.