Rev 3009 | Rev 3403 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3009 | Rev 3153 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | #include <atomic.h> |
38 | #include <atomic.h> |
39 | #include <sys/types.h> |
39 | #include <sys/types.h> |
40 | #include <bool.h> |
40 | #include <bool.h> |
41 | #include <libadt/hash_table.h> |
41 | #include <libadt/hash_table.h> |
42 | 42 | ||
- | 43 | #ifndef dprintf |
|
43 | #define dprintf(...) printf(__VA_ARGS__) |
44 | #define dprintf(...) printf(__VA_ARGS__) |
- | 45 | #endif |
|
44 | 46 | ||
45 | typedef struct tmpfs_dentry { |
47 | typedef struct tmpfs_dentry { |
46 | fs_index_t index; /**< TMPFS node index. */ |
48 | fs_index_t index; /**< TMPFS node index. */ |
47 | link_t dh_link; /**< Dentries hash table link. */ |
49 | link_t dh_link; /**< Dentries hash table link. */ |
48 | struct tmpfs_dentry *sibling; |
50 | struct tmpfs_dentry *sibling; |
Line 58... | Line 60... | ||
58 | void *data; /**< File content's if type is TMPFS_FILE. */ |
60 | void *data; /**< File content's if type is TMPFS_FILE. */ |
59 | } tmpfs_dentry_t; |
61 | } tmpfs_dentry_t; |
60 | 62 | ||
61 | extern fs_reg_t tmpfs_reg; |
63 | extern fs_reg_t tmpfs_reg; |
62 | 64 | ||
- | 65 | extern libfs_ops_t tmpfs_libfs_ops; |
|
- | 66 | ||
- | 67 | extern void tmpfs_mounted(ipc_callid_t, ipc_call_t *); |
|
63 | extern void tmpfs_mount(ipc_callid_t, ipc_call_t *); |
68 | extern void tmpfs_mount(ipc_callid_t, ipc_call_t *); |
64 | extern void tmpfs_lookup(ipc_callid_t, ipc_call_t *); |
69 | extern void tmpfs_lookup(ipc_callid_t, ipc_call_t *); |
65 | extern void tmpfs_read(ipc_callid_t, ipc_call_t *); |
70 | extern void tmpfs_read(ipc_callid_t, ipc_call_t *); |
66 | extern void tmpfs_write(ipc_callid_t, ipc_call_t *); |
71 | extern void tmpfs_write(ipc_callid_t, ipc_call_t *); |
67 | extern void tmpfs_truncate(ipc_callid_t, ipc_call_t *); |
72 | extern void tmpfs_truncate(ipc_callid_t, ipc_call_t *); |
68 | extern void tmpfs_destroy(ipc_callid_t, ipc_call_t *); |
73 | extern void tmpfs_destroy(ipc_callid_t, ipc_call_t *); |
69 | 74 | ||
- | 75 | extern bool tmpfs_restore(dev_handle_t); |
|
- | 76 | ||
70 | #endif |
77 | #endif |
71 | 78 | ||
72 | /** |
79 | /** |
73 | * @} |
80 | * @} |
74 | */ |
81 | */ |