Changes in uspace/srv/vfs/vfs.h [79ae36dd:e2ab36f1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.h
r79ae36dd re2ab36f1 38 38 #include <fibril_synch.h> 39 39 #include <sys/types.h> 40 #include < devmap.h>40 #include <loc.h> 41 41 #include <bool.h> 42 42 #include <ipc/vfs.h> 43 #include <task.h> 43 44 44 45 #ifndef dprintf … … 61 62 #define VFS_PAIR \ 62 63 fs_handle_t fs_handle; \ 63 devmap_handle_t devmap_handle;64 service_id_t service_id; 64 65 65 66 /** … … 67 68 * doesn't contain any state. For a stateful structure, see vfs_node_t. 68 69 * 69 * @note fs_handle, devmap_handleand index are meant to be returned in one70 * @note fs_handle, service_id and index are meant to be returned in one 70 71 * IPC reply. 71 72 */ … … 145 146 extern fibril_mutex_t nodes_mutex; 146 147 147 extern fibril_condvar_t fs_ head_cv;148 extern fibril_mutex_t fs_ head_lock;149 extern li nk_t fs_head; /**< List of registered file systems. */148 extern fibril_condvar_t fs_list_cv; 149 extern fibril_mutex_t fs_list_lock; 150 extern list_t fs_list; /**< List of registered file systems. */ 150 151 151 152 extern vfs_pair_t rootfs; /**< Root file system. */ … … 158 159 } plb_entry_t; 159 160 160 extern fibril_mutex_t plb_mutex;/**< Mutex protecting plb and plb_ head. */161 extern fibril_mutex_t plb_mutex;/**< Mutex protecting plb and plb_entries. */ 161 162 extern uint8_t *plb; /**< Path Lookup Buffer */ 162 extern li nk_t plb_head;/**< List of active PLB entries. */163 extern list_t plb_entries; /**< List of active PLB entries. */ 163 164 164 165 #define MAX_MNTOPTS_LEN 256 … … 175 176 extern int vfs_lookup_internal(char *, int, vfs_lookup_res_t *, 176 177 vfs_pair_t *, ...); 177 extern int vfs_open_node_internal(vfs_lookup_res_t *);178 178 179 179 extern bool vfs_nodes_init(void); … … 181 181 extern void vfs_node_put(vfs_node_t *); 182 182 extern void vfs_node_forget(vfs_node_t *); 183 extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, devmap_handle_t);183 extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, service_id_t); 184 184 185 185 … … 188 188 extern void *vfs_client_data_create(void); 189 189 extern void vfs_client_data_destroy(void *); 190 191 extern void vfs_pass_handle(task_id_t, task_id_t, int); 192 extern int vfs_wait_handle_internal(void); 190 193 191 194 extern vfs_file_t *vfs_file_get(int); … … 197 200 extern void vfs_node_addref(vfs_node_t *); 198 201 extern void vfs_node_delref(vfs_node_t *); 202 extern int vfs_open_node_remote(vfs_node_t *); 199 203 200 204 extern void vfs_register(ipc_callid_t, ipc_call_t *); … … 202 206 extern void vfs_unmount(ipc_callid_t, ipc_call_t *); 203 207 extern void vfs_open(ipc_callid_t, ipc_call_t *); 204 extern void vfs_open_node(ipc_callid_t, ipc_call_t *);205 208 extern void vfs_sync(ipc_callid_t, ipc_call_t *); 206 209 extern void vfs_dup(ipc_callid_t, ipc_call_t *); … … 215 218 extern void vfs_unlink(ipc_callid_t, ipc_call_t *); 216 219 extern void vfs_rename(ipc_callid_t, ipc_call_t *); 220 extern void vfs_wait_handle(ipc_callid_t, ipc_call_t *); 217 221 218 222 #endif
Note:
See TracChangeset
for help on using the changeset viewer.