Changeset b3f598e in mainline for uspace/srv/vfs/vfs.h
- Timestamp:
- 2007-09-13T20:19:40Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 183b4a0
- Parents:
- c952465d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.h
rc952465d rb3f598e 35 35 36 36 typedef enum { 37 VFS_REGISTER = 1,37 VFS_REGISTER = 0, 38 38 VFS_MOUNT, 39 39 VFS_UNMOUNT, 40 VFS_OPEN 40 VFS_OPEN, 41 VFS_LAST, /* keep this the last member of the enum */ 41 42 } vfs_request_t; 43 44 45 /** 46 * An instance of this structure is associated with a particular FS operation. 47 * It tells VFS if the FS supports the operation or maybe if a default one 48 * should be used. 49 */ 50 typedef enum { 51 VFS_OP_NOTSUP = 0, 52 VFS_OP_DEFAULT, 53 VFS_OP_DEFINED 54 } vfs_op_t; 55 56 #define FS_NAME_MAXLEN 20 57 58 /** 59 * A structure like this is passed to VFS by each individual FS upon its 60 * registration. It assosiates a human-readable identifier with each 61 * registered FS. More importantly, through this structure, the FS announces 62 * what operations it supports. 63 */ 64 typedef struct { 65 char fs_name[FS_NAME_MAXLEN]; /**< Unique identifier of the fs. */ 66 vfs_op_t ops[VFS_LAST]; /**< Operations. */ 67 } vfs_info_t; 42 68 43 69 #endif
Note:
See TracChangeset
for help on using the changeset viewer.