summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/imfs/imfs_fifo.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-02-05 16:14:59 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-02-12 20:53:34 +0100
commit24ec25d2aee6dde7b572f27694e9a62e34a6603f (patch)
tree8ddad5b14af063c867e630fe5234f9b0078a539c /cpukit/libfs/src/imfs/imfs_fifo.c
parentFilesystem: Use ENOTSUP for default mount/unmount (diff)
downloadrtems-24ec25d2aee6dde7b572f27694e9a62e34a6603f.tar.bz2
IMFS: Introduce IMFS_mknod_control
Drop IMFS_node_control::node_size field and add node_size parameter to IMFS_allocate_node() and IMFS_create_node(). This reduces the size of generic nodes.
Diffstat (limited to '')
-rw-r--r--cpukit/libfs/src/imfs/imfs_fifo.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_fifo.c b/cpukit/libfs/src/imfs/imfs_fifo.c
index 36eab8541d..d84429d6fe 100644
--- a/cpukit/libfs/src/imfs/imfs_fifo.c
+++ b/cpukit/libfs/src/imfs/imfs_fifo.c
@@ -130,10 +130,12 @@ static const rtems_filesystem_file_handlers_r IMFS_fifo_handlers = {
.writev_h = rtems_filesystem_default_writev
};
-const IMFS_node_control IMFS_node_control_fifo = {
- .handlers = &IMFS_fifo_handlers,
- .node_size = sizeof(IMFS_fifo_t),
- .node_initialize = IMFS_node_initialize_default,
- .node_remove = IMFS_node_remove_default,
- .node_destroy = IMFS_node_destroy_default
+const IMFS_mknod_control IMFS_mknod_control_fifo = {
+ {
+ .handlers = &IMFS_fifo_handlers,
+ .node_initialize = IMFS_node_initialize_default,
+ .node_remove = IMFS_node_remove_default,
+ .node_destroy = IMFS_node_destroy_default
+ },
+ .node_size = sizeof( IMFS_fifo_t )
};