Changeset cf95bc0 in mainline for uspace/srv/fs/tmpfs/tmpfs.h
- Timestamp:
- 2009-05-09T21:56:50Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d4a172b
- Parents:
- 4f46695e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs.h
r4f46695e rcf95bc0 45 45 #endif 46 46 47 #define TMPFS_NODE(node) ((node) ? (tmpfs_ dentry_t *)(node)->data : NULL)47 #define TMPFS_NODE(node) ((node) ? (tmpfs_node_t *)(node)->data : NULL) 48 48 #define FS_NODE(node) ((node) ? (node)->bp : NULL) 49 49 … … 54 54 } tmpfs_dentry_type_t; 55 55 56 /* forward declaration */ 57 struct tmpfs_node; 58 56 59 typedef struct tmpfs_dentry { 60 link_t link; /**< Linkage for the list of siblings. */ 61 struct tmpfs_node *node;/**< Back pointer to TMPFS node. */ 62 char *name; /**< Name of dentry. */ 63 } tmpfs_dentry_t; 64 65 typedef struct tmpfs_node { 57 66 fs_node_t *bp; /**< Back pointer to the FS node. */ 58 67 fs_index_t index; /**< TMPFS node index. */ 59 68 dev_handle_t dev_handle;/**< Device handle. */ 60 link_t dh_link; /**< Dentries hash table link. */ 61 struct tmpfs_dentry *sibling; 62 struct tmpfs_dentry *child; 63 hash_table_t names; /**< All names linking to this TMPFS node. */ 69 link_t nh_link; /**< Nodes hash table link. */ 64 70 tmpfs_dentry_type_t type; 65 71 unsigned lnkcnt; /**< Link count. */ 66 72 size_t size; /**< File size if type is TMPFS_FILE. */ 67 73 void *data; /**< File content's if type is TMPFS_FILE. */ 68 } tmpfs_dentry_t; 74 link_t cs_head; /**< Head of child's siblings list. */ 75 } tmpfs_node_t; 69 76 70 77 extern fs_reg_t tmpfs_reg;
Note:
See TracChangeset
for help on using the changeset viewer.