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


Ignore:
File:
1 edited

Legend:

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

    rffa2c8ef r76a67ce  
    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
     
    5354        vfs_info_t vfs_info;
    5455        fs_handle_t fs_handle;
    55         async_sess_t session;
     56        async_sess_t *sess;
    5657} fs_info_t;
    5758
     
    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. */
     151
     152extern fibril_mutex_t fs_mntlist_lock;
     153extern list_t fs_mntlist;       /**< List of mounted file systems. */
    150154
    151155extern vfs_pair_t rootfs;       /**< Root file system. */
     
    158162} plb_entry_t;
    159163
    160 extern fibril_mutex_t plb_mutex;/**< Mutex protecting plb and plb_head. */
     164extern fibril_mutex_t plb_mutex;/**< Mutex protecting plb and plb_entries. */
    161165extern uint8_t *plb;            /**< Path Lookup Buffer */
    162 extern link_t plb_head;         /**< List of active PLB entries. */
    163 
    164 #define MAX_MNTOPTS_LEN         256
     166extern list_t plb_entries;      /**< List of active PLB entries. */
    165167
    166168/** Holding this rwlock prevents changes in file system namespace. */
    167169extern fibril_rwlock_t namespace_rwlock;
    168170
    169 extern int vfs_grab_phone(fs_handle_t);
    170 extern void vfs_release_phone(fs_handle_t, int);
    171 
    172 extern fs_handle_t fs_name_to_handle(char *, bool);
     171extern async_exch_t *vfs_exchange_grab(fs_handle_t);
     172extern void vfs_exchange_release(async_exch_t *);
     173
     174extern fs_handle_t fs_name_to_handle(unsigned int instance, char *, bool);
    173175extern vfs_info_t *fs_handle_to_info(fs_handle_t);
    174176
    175177extern int vfs_lookup_internal(char *, int, vfs_lookup_res_t *,
    176178    vfs_pair_t *, ...);
    177 extern int vfs_open_node_internal(vfs_lookup_res_t *);
    178 extern int vfs_close_internal(vfs_file_t *);
    179179
    180180extern bool vfs_nodes_init(void);
     
    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, service_id_t);
    185185
    186186
     
    189189extern void *vfs_client_data_create(void);
    190190extern void vfs_client_data_destroy(void *);
     191
     192extern void vfs_pass_handle(task_id_t, task_id_t, int);
     193extern int vfs_wait_handle_internal(void);
    191194
    192195extern vfs_file_t *vfs_file_get(int);
     
    198201extern void vfs_node_addref(vfs_node_t *);
    199202extern void vfs_node_delref(vfs_node_t *);
     203extern int vfs_open_node_remote(vfs_node_t *);
    200204
    201205extern void vfs_register(ipc_callid_t, ipc_call_t *);
     
    203207extern void vfs_unmount(ipc_callid_t, ipc_call_t *);
    204208extern void vfs_open(ipc_callid_t, ipc_call_t *);
    205 extern void vfs_open_node(ipc_callid_t, ipc_call_t *);
    206209extern void vfs_sync(ipc_callid_t, ipc_call_t *);
    207210extern void vfs_dup(ipc_callid_t, ipc_call_t *);
     
    216219extern void vfs_unlink(ipc_callid_t, ipc_call_t *);
    217220extern void vfs_rename(ipc_callid_t, ipc_call_t *);
     221extern void vfs_wait_handle(ipc_callid_t, ipc_call_t *);
     222extern void vfs_get_mtab(ipc_callid_t, ipc_call_t *);
    218223
    219224#endif
Note: See TracChangeset for help on using the changeset viewer.