Changes in uspace/srv/vfs/vfs.h [ffa2c8ef:df908b3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.h
rffa2c8ef rdf908b3 34 34 #define VFS_VFS_H_ 35 35 36 #include < async.h>36 #include <ipc/ipc.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 async_sess_t session; 55 fibril_mutex_t phone_lock; 56 ipcarg_t phone; 56 57 } fs_info_t; 57 58 … … 61 62 #define VFS_PAIR \ 62 63 fs_handle_t fs_handle; \ 63 dev map_handle_t devmap_handle;64 dev_handle_t dev_handle; 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, dev map_handle and index are meant to be returned in one70 * @note fs_handle, dev_handle and index are meant to be returned in one 70 71 * IPC reply. 71 72 */ … … 171 172 172 173 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 map_handle_t);184 extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, dev_handle_t); 185 185 186 186 187 187 #define MAX_OPEN_FILES 128 188 188 189 extern void *vfs_client_data_create(void); 190 extern void vfs_client_data_destroy(void *); 191 189 extern bool vfs_files_init(void); 190 extern void vfs_files_done(void); 192 191 extern vfs_file_t *vfs_file_get(int); 193 extern void vfs_file_put(vfs_file_t *); 194 extern int vfs_fd_assign(vfs_file_t *, int); 192 extern int vfs_fd_assign(vfs_file_t *file, int fd); 195 193 extern int vfs_fd_alloc(bool desc); 196 194 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 *); 197 198 198 199 extern void vfs_node_addref(vfs_node_t *);
Note:
See TracChangeset
for help on using the changeset viewer.