Changes in uspace/srv/vfs/vfs.h [df908b3:ffa2c8ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.h
rdf908b3 rffa2c8ef 34 34 #define VFS_VFS_H_ 35 35 36 #include < ipc/ipc.h>36 #include <async.h> 37 37 #include <adt/list.h> 38 38 #include <fibril_synch.h> … … 53 53 vfs_info_t vfs_info; 54 54 fs_handle_t fs_handle; 55 fibril_mutex_t phone_lock; 56 ipcarg_t phone; 55 async_sess_t session; 57 56 } fs_info_t; 58 57 … … 62 61 #define VFS_PAIR \ 63 62 fs_handle_t fs_handle; \ 64 dev _handle_t dev_handle;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, dev _handle and 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 */ … … 172 171 173 172 extern fs_handle_t fs_name_to_handle(char *, bool); 173 extern vfs_info_t *fs_handle_to_info(fs_handle_t); 174 174 175 175 extern int vfs_lookup_internal(char *, int, vfs_lookup_res_t *, … … 182 182 extern void vfs_node_put(vfs_node_t *); 183 183 extern void vfs_node_forget(vfs_node_t *); 184 extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, dev _handle_t);184 extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, devmap_handle_t); 185 185 186 186 187 187 #define MAX_OPEN_FILES 128 188 188 189 extern bool vfs_files_init(void); 190 extern void vfs_files_done(void); 189 extern void *vfs_client_data_create(void); 190 extern void vfs_client_data_destroy(void *); 191 191 192 extern vfs_file_t *vfs_file_get(int); 192 extern int vfs_fd_assign(vfs_file_t *file, int fd); 193 extern void vfs_file_put(vfs_file_t *); 194 extern int vfs_fd_assign(vfs_file_t *, int); 193 195 extern int vfs_fd_alloc(bool desc); 194 196 extern int vfs_fd_free(int); 195 196 extern void vfs_file_addref(vfs_file_t *);197 extern void vfs_file_delref(vfs_file_t *);198 197 199 198 extern void vfs_node_addref(vfs_node_t *);
Note:
See TracChangeset
for help on using the changeset viewer.