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 | |
---|
28 | const 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 | |
---|
49 | int 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 | } |
---|