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


Ignore:
Timestamp:
2008-03-11T20:33:53Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
923c39e
Parents:
8ad8e49
Message:

Introduce fs_handle_t, dev_handle_t and fs_index_t.

File:
1 edited

Legend:

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

    r8ad8e49 rf2ec8c8  
    4747#define IPC_METHOD_TO_VFS_OP(m) ((m) - VFS_FIRST)       
    4848
     49/* Basic types. */
     50typedef int16_t fs_handle_t;
     51typedef int16_t dev_handle_t;
     52typedef uint32_t fs_index_t;
     53
    4954typedef enum {
    5055        VFS_READ = VFS_FIRST,
     
    107112        link_t fs_link;
    108113        vfs_info_t vfs_info;
    109         int fs_handle;
     114        fs_handle_t fs_handle;
    110115        futex_t phone_futex;    /**< Phone serializing futex. */
    111116        ipcarg_t phone;
     
    115120 * VFS_PAIR uniquely represents a file system instance.
    116121 */
    117 #define VFS_PAIR        \
    118         int fs_handle;  \
    119         int dev_handle;
     122#define VFS_PAIR                \
     123        fs_handle_t fs_handle;  \
     124        dev_handle_t dev_handle;
    120125
    121126/**
     
    128133#define VFS_TRIPLET     \
    129134        VFS_PAIR;       \
    130         uint64_t index;
     135        fs_index_t index;
    131136
    132137typedef struct {
     
    257262extern rwlock_t namespace_rwlock;
    258263
    259 extern int vfs_grab_phone(int);
     264extern int vfs_grab_phone(fs_handle_t);
    260265extern void vfs_release_phone(int);
    261266
    262 extern int fs_name_to_handle(char *, bool);
     267extern fs_handle_t fs_name_to_handle(char *, bool);
    263268
    264269extern int vfs_lookup_internal(char *, int, vfs_lookup_res_t *, vfs_pair_t *,
Note: See TracChangeset for help on using the changeset viewer.