Changes in uspace/srv/vfs/vfs.h [e2ab36f1:79ae36dd] in mainline


Ignore:
File:
1 edited

Legend:

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

    re2ab36f1 r79ae36dd  
    3838#include <fibril_synch.h>
    3939#include <sys/types.h>
    40 #include <loc.h>
     40#include <devmap.h>
    4141#include <bool.h>
    4242#include <ipc/vfs.h>
    43 #include <task.h>
    4443
    4544#ifndef dprintf
     
    6261#define VFS_PAIR \
    6362        fs_handle_t fs_handle; \
    64         service_id_t service_id;
     63        devmap_handle_t devmap_handle;
    6564
    6665/**
     
    6867 * doesn't contain any state. For a stateful structure, see vfs_node_t.
    6968 *
    70  * @note        fs_handle, service_id and index are meant to be returned in one
     69 * @note        fs_handle, devmap_handle and index are meant to be returned in one
    7170 *              IPC reply.
    7271 */
     
    146145extern fibril_mutex_t nodes_mutex;
    147146
    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. */
     147extern fibril_condvar_t fs_head_cv;
     148extern fibril_mutex_t fs_head_lock;
     149extern link_t fs_head;          /**< List of registered file systems. */
    151150
    152151extern vfs_pair_t rootfs;       /**< Root file system. */
     
    159158} plb_entry_t;
    160159
    161 extern fibril_mutex_t plb_mutex;/**< Mutex protecting plb and plb_entries. */
     160extern fibril_mutex_t plb_mutex;/**< Mutex protecting plb and plb_head. */
    162161extern uint8_t *plb;            /**< Path Lookup Buffer */
    163 extern list_t plb_entries;      /**< List of active PLB entries. */
     162extern link_t plb_head;         /**< List of active PLB entries. */
    164163
    165164#define MAX_MNTOPTS_LEN         256
     
    176175extern int vfs_lookup_internal(char *, int, vfs_lookup_res_t *,
    177176    vfs_pair_t *, ...);
     177extern int vfs_open_node_internal(vfs_lookup_res_t *);
    178178
    179179extern bool vfs_nodes_init(void);
     
    181181extern void vfs_node_put(vfs_node_t *);
    182182extern void vfs_node_forget(vfs_node_t *);
    183 extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, service_id_t);
     183extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, devmap_handle_t);
    184184
    185185
     
    188188extern void *vfs_client_data_create(void);
    189189extern 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);
    193190
    194191extern vfs_file_t *vfs_file_get(int);
     
    200197extern void vfs_node_addref(vfs_node_t *);
    201198extern void vfs_node_delref(vfs_node_t *);
    202 extern int vfs_open_node_remote(vfs_node_t *);
    203199
    204200extern void vfs_register(ipc_callid_t, ipc_call_t *);
     
    206202extern void vfs_unmount(ipc_callid_t, ipc_call_t *);
    207203extern void vfs_open(ipc_callid_t, ipc_call_t *);
     204extern void vfs_open_node(ipc_callid_t, ipc_call_t *);
    208205extern void vfs_sync(ipc_callid_t, ipc_call_t *);
    209206extern void vfs_dup(ipc_callid_t, ipc_call_t *);
     
    218215extern void vfs_unlink(ipc_callid_t, ipc_call_t *);
    219216extern void vfs_rename(ipc_callid_t, ipc_call_t *);
    220 extern void vfs_wait_handle(ipc_callid_t, ipc_call_t *);
    221217
    222218#endif
Note: See TracChangeset for help on using the changeset viewer.