Changes in uspace/srv/vfs/vfs.h [ffa2c8ef:df908b3] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs.h

    rffa2c8ef rdf908b3  
    3434#define VFS_VFS_H_
    3535
    36 #include <async.h>
     36#include <ipc/ipc.h>
    3737#include <adt/list.h>
    3838#include <fibril_synch.h>
     
    5353        vfs_info_t vfs_info;
    5454        fs_handle_t fs_handle;
    55         async_sess_t session;
     55        fibril_mutex_t phone_lock;
     56        ipcarg_t phone;
    5657} fs_info_t;
    5758
     
    6162#define VFS_PAIR \
    6263        fs_handle_t fs_handle; \
    63         devmap_handle_t devmap_handle;
     64        dev_handle_t dev_handle;
    6465
    6566/**
     
    6768 * doesn't contain any state. For a stateful structure, see vfs_node_t.
    6869 *
    69  * @note        fs_handle, devmap_handle and index are meant to be returned in one
     70 * @note        fs_handle, dev_handle and index are meant to be returned in one
    7071 *              IPC reply.
    7172 */
     
    171172
    172173extern fs_handle_t fs_name_to_handle(char *, bool);
    173 extern vfs_info_t *fs_handle_to_info(fs_handle_t);
    174174
    175175extern int vfs_lookup_internal(char *, int, vfs_lookup_res_t *,
     
    182182extern void vfs_node_put(vfs_node_t *);
    183183extern void vfs_node_forget(vfs_node_t *);
    184 extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, devmap_handle_t);
     184extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, dev_handle_t);
    185185
    186186
    187187#define MAX_OPEN_FILES  128
    188188
    189 extern void *vfs_client_data_create(void);
    190 extern void vfs_client_data_destroy(void *);
    191 
     189extern bool vfs_files_init(void);
     190extern void vfs_files_done(void);
    192191extern 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);
     192extern int vfs_fd_assign(vfs_file_t *file, int fd);
    195193extern int vfs_fd_alloc(bool desc);
    196194extern int vfs_fd_free(int);
     195
     196extern void vfs_file_addref(vfs_file_t *);
     197extern void vfs_file_delref(vfs_file_t *);
    197198
    198199extern void vfs_node_addref(vfs_node_t *);
Note: See TracChangeset for help on using the changeset viewer.