Changeset f2ec8c8 in mainline for uspace/srv/vfs/vfs.h
- Timestamp:
- 2008-03-11T20:33:53Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 923c39e
- Parents:
- 8ad8e49
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.h
r8ad8e49 rf2ec8c8 47 47 #define IPC_METHOD_TO_VFS_OP(m) ((m) - VFS_FIRST) 48 48 49 /* Basic types. */ 50 typedef int16_t fs_handle_t; 51 typedef int16_t dev_handle_t; 52 typedef uint32_t fs_index_t; 53 49 54 typedef enum { 50 55 VFS_READ = VFS_FIRST, … … 107 112 link_t fs_link; 108 113 vfs_info_t vfs_info; 109 int fs_handle;114 fs_handle_t fs_handle; 110 115 futex_t phone_futex; /**< Phone serializing futex. */ 111 116 ipcarg_t phone; … … 115 120 * VFS_PAIR uniquely represents a file system instance. 116 121 */ 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; 120 125 121 126 /** … … 128 133 #define VFS_TRIPLET \ 129 134 VFS_PAIR; \ 130 uint64_t index;135 fs_index_t index; 131 136 132 137 typedef struct { … … 257 262 extern rwlock_t namespace_rwlock; 258 263 259 extern int vfs_grab_phone( int);264 extern int vfs_grab_phone(fs_handle_t); 260 265 extern void vfs_release_phone(int); 261 266 262 extern int fs_name_to_handle(char *, bool);267 extern fs_handle_t fs_name_to_handle(char *, bool); 263 268 264 269 extern int vfs_lookup_internal(char *, int, vfs_lookup_res_t *, vfs_pair_t *,
Note:
See TracChangeset
for help on using the changeset viewer.