Changeset eb522e8 in mainline for uspace/srv/vfs/vfs.h


Ignore:
Timestamp:
2011-06-01T08:43:42Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d6c1f1
Parents:
9e2e715 (diff), e51a514 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Huuuuuge merge from development - all the work actually :)

File:
1 edited

Legend:

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

    r9e2e715 reb522e8  
    3434#define VFS_VFS_H_
    3535
    36 #include <ipc/ipc.h>
     36#include <async.h>
    3737#include <adt/list.h>
    3838#include <fibril_synch.h>
     
    5353        vfs_info_t vfs_info;
    5454        fs_handle_t fs_handle;
    55         fibril_mutex_t phone_lock;
    56         ipcarg_t phone;
     55        async_sess_t session;
    5756} fs_info_t;
    5857
     
    6261#define VFS_PAIR \
    6362        fs_handle_t fs_handle; \
    64         dev_handle_t dev_handle;
     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, dev_handle 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 */
     
    172171
    173172extern fs_handle_t fs_name_to_handle(char *, bool);
     173extern 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, dev_handle_t);
     184extern unsigned vfs_nodes_refcount_sum_get(fs_handle_t, devmap_handle_t);
    185185
    186186
    187187#define MAX_OPEN_FILES  128
    188188
    189 extern bool vfs_files_init(void);
    190 extern void vfs_files_done(void);
     189extern void *vfs_client_data_create(void);
     190extern void vfs_client_data_destroy(void *);
     191
    191192extern vfs_file_t *vfs_file_get(int);
    192 extern int vfs_fd_assign(vfs_file_t *file, int fd);
     193extern void vfs_file_put(vfs_file_t *);
     194extern int vfs_fd_assign(vfs_file_t *, int);
    193195extern int vfs_fd_alloc(bool desc);
    194196extern int vfs_fd_free(int);
    195 
    196 extern void vfs_file_addref(vfs_file_t *);
    197 extern void vfs_file_delref(vfs_file_t *);
    198197
    199198extern void vfs_node_addref(vfs_node_t *);
Note: See TracChangeset for help on using the changeset viewer.