4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * IMFS Initialization |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-1999. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.OARcorp.com/rtems/license.html. |
---|
10 | * |
---|
11 | * $Id$ |
---|
12 | */ |
---|
13 | |
---|
14 | #include <sys/types.h> /* for mkdir */ |
---|
15 | #include <fcntl.h> |
---|
16 | #include <unistd.h> |
---|
17 | #include <stdlib.h> |
---|
18 | |
---|
19 | #include <assert.h> |
---|
20 | |
---|
21 | #include "imfs.h" |
---|
22 | #include "libio_.h" |
---|
23 | |
---|
24 | #if defined(IMFS_DEBUG) |
---|
25 | #include <stdio.h> |
---|
26 | #endif |
---|
27 | |
---|
28 | /* |
---|
29 | * IMFS file system operations table |
---|
30 | */ |
---|
31 | |
---|
32 | rtems_filesystem_operations_table IMFS_ops = { |
---|
33 | IMFS_eval_path, |
---|
34 | IMFS_evaluate_for_make, |
---|
35 | IMFS_link, |
---|
36 | IMFS_unlink, |
---|
37 | IMFS_node_type, |
---|
38 | IMFS_mknod, |
---|
39 | IMFS_chown, |
---|
40 | IMFS_freenodinfo, |
---|
41 | IMFS_mount, |
---|
42 | IMFS_initialize, |
---|
43 | IMFS_unmount, |
---|
44 | IMFS_fsunmount, |
---|
45 | IMFS_utime, |
---|
46 | IMFS_evaluate_link, |
---|
47 | IMFS_symlink, |
---|
48 | IMFS_readlink |
---|
49 | }; |
---|
50 | |
---|
51 | /* |
---|
52 | * IMFS_initialize |
---|
53 | */ |
---|
54 | |
---|
55 | int IMFS_initialize( |
---|
56 | rtems_filesystem_mount_table_entry_t *temp_mt_entry |
---|
57 | ) |
---|
58 | { |
---|
59 | IMFS_initialize_support( |
---|
60 | temp_mt_entry, |
---|
61 | &IMFS_ops, |
---|
62 | &IMFS_memfile_handlers, |
---|
63 | &IMFS_directory_handlers |
---|
64 | ); |
---|
65 | return 0; |
---|
66 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.