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