Changeset 4863e50b in mainline for uspace/srv/vfs/vfs.h
- Timestamp:
- 2009-01-31T23:15:13Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4a10b63
- Parents:
- 516ff92
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.h
r516ff92 r4863e50b 48 48 #define VFS_FIRST IPC_FIRST_USER_METHOD 49 49 50 #define IPC_METHOD_TO_VFS_OP(m) ((m) - VFS_FIRST)51 52 50 /* Basic types. */ 53 51 typedef int16_t fs_handle_t; … … 82 80 } vfs_request_srv_t; 83 81 84 85 /**86 * An instance of this structure is associated with a particular FS operation.87 * It tells VFS if the FS supports the operation or maybe if a default one88 * should be used.89 */90 typedef enum {91 VFS_OP_NULL = 0,92 VFS_OP_DEFAULT,93 VFS_OP_DEFINED94 } vfs_op_t;95 96 82 #define FS_NAME_MAXLEN 20 97 83 … … 99 85 * A structure like this is passed to VFS by each individual FS upon its 100 86 * registration. It assosiates a human-readable identifier with each 101 * registered FS. More importantly, through this structure, the FS announces 102 * what operations it supports. 87 * registered FS. 103 88 */ 104 89 typedef struct { 105 90 /** Unique identifier of the fs. */ 106 91 char name[FS_NAME_MAXLEN + 1]; 107 108 /** Operations. */109 vfs_op_t ops[VFS_LAST_CLNT - VFS_FIRST];110 92 } vfs_info_t; 111 93
Note:
See TracChangeset
for help on using the changeset viewer.