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

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 1.8 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  .node_type_h = IMFS_node_type,
35  .mknod_h = IMFS_mknod,
36  .rmnod_h = IMFS_rmnod,
37  .fchmod_h = IMFS_fchmod,
38  .chown_h = IMFS_chown,
39  .clonenod_h = IMFS_node_clone,
40  .freenod_h = IMFS_node_free,
41  .mount_h = IMFS_mount,
42  .fsmount_me_h = fifoIMFS_initialize,
43  .unmount_h = IMFS_unmount,
44  .fsunmount_me_h = IMFS_fsunmount,
45  .utime_h = IMFS_utime,
46  .symlink_h = IMFS_symlink,
47  .readlink_h = IMFS_readlink,
48  .rename_h = IMFS_rename,
49  .statvfs_h = rtems_filesystem_default_statvfs
50};
51
52static const IMFS_node_control *const
53  IMFS_fifo_node_controls [IMFS_TYPE_COUNT] = {
54  [IMFS_DIRECTORY] = &IMFS_node_control_directory,
55  [IMFS_DEVICE] = &IMFS_node_control_device,
56  [IMFS_HARD_LINK] = &IMFS_node_control_hard_link,
57  [IMFS_SYM_LINK] = &IMFS_node_control_sym_link,
58  [IMFS_MEMORY_FILE] = &IMFS_node_control_memfile,
59  [IMFS_LINEAR_FILE] = &IMFS_node_control_linfile,
60  [IMFS_FIFO] = &IMFS_node_control_fifo
61};
62
63int fifoIMFS_initialize(
64  rtems_filesystem_mount_table_entry_t *mt_entry,
65  const void *data
66)
67{
68  return IMFS_initialize_support(
69    mt_entry,
70    &fifoIMFS_ops,
71    IMFS_fifo_node_controls
72  );
73}
Note: See TracBrowser for help on using the repository browser.