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


Ignore:
File:
1 edited

Legend:

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

    r79ae36dd re2ab36f1  
    3838#include <fibril_synch.h>
    3939#include <sys/types.h>
    40 #include <devmap.h>
     40#include <loc.h>
    4141#include <bool.h>
    4242#include <ipc/vfs.h>
     43#include <task.h>
    4344
    4445#ifndef dprintf
     
    6162#define VFS_PAIR \
    6263        fs_handle_t fs_handle; \
    63         devmap_handle_t devmap_handle;
     64        service_id_t service_id;
    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, service_id and index are meant to be returned in one
    7071 *              IPC reply.
    7172 */
     
    145146extern fibril_mutex_t nodes_mutex;
    146147
    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. */
     148extern fibril_condvar_t fs_list_cv;
     149extern fibril_mutex_t fs_list_lock;
     150extern list_t fs_list;          /**< List of registered file systems. */
    150151
    151152extern vfs_pair_t rootfs;       /**< Root file system. */
     
    158159} plb_entry_t;
    159160
    160 extern fibril_mutex_t plb_mutex;/**< Mutex protecting plb and plb_head. */
     161extern fibril_mutex_t plb_mutex;/**< Mutex protecting plb and plb_entries. */
    161162extern uint8_t *plb;            /**< Path Lookup Buffer */
    162 extern link_t plb_head;         /**< List of active PLB entries. */
     163extern list_t plb_entries;      /**< List of active PLB entries. */
    163164
    164165#define MAX_MNTOPTS_LEN         256
     
    175176extern int vfs_lookup_internal(char *, int, vfs_lookup_res_t *,
    176177    vfs_pair_t *, ...);
    177 extern 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, devmap_handle_t);
     183extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, service_id_t);
    184184
    185185
     
    188188extern void *vfs_client_data_create(void);
    189189extern void vfs_client_data_destroy(void *);
     190
     191extern void vfs_pass_handle(task_id_t, task_id_t, int);
     192extern int vfs_wait_handle_internal(void);
    190193
    191194extern vfs_file_t *vfs_file_get(int);
     
    197200extern void vfs_node_addref(vfs_node_t *);
    198201extern void vfs_node_delref(vfs_node_t *);
     202extern int vfs_open_node_remote(vfs_node_t *);
    199203
    200204extern void vfs_register(ipc_callid_t, ipc_call_t *);
     
    202206extern void vfs_unmount(ipc_callid_t, ipc_call_t *);
    203207extern void vfs_open(ipc_callid_t, ipc_call_t *);
    204 extern void vfs_open_node(ipc_callid_t, ipc_call_t *);
    205208extern void vfs_sync(ipc_callid_t, ipc_call_t *);
    206209extern void vfs_dup(ipc_callid_t, ipc_call_t *);
     
    215218extern void vfs_unlink(ipc_callid_t, ipc_call_t *);
    216219extern void vfs_rename(ipc_callid_t, ipc_call_t *);
     220extern void vfs_wait_handle(ipc_callid_t, ipc_call_t *);
    217221
    218222#endif
Note: See TracChangeset for help on using the changeset viewer.