Changeset 66bea243 in mainline for uspace/srv/fs/pipefs/pipefs.h
- Timestamp:
- 2011-03-09T20:48:54Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f8c60f5
- Parents:
- 868ef40
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/pipefs/pipefs.h
r868ef40 r66bea243 39 39 #include <bool.h> 40 40 #include <adt/hash_table.h> 41 #include <fibril_synch.h> 41 42 42 43 #define PIPEFS_NODE(node) ((node) ? (pipefs_node_t *)(node)->data : NULL) … … 66 67 unsigned lnkcnt; /**< Link count. */ 67 68 /* Following is for nodes of type PIPEFS_FILE */ 69 fibril_mutex_t data_lock; 70 fibril_condvar_t data_available; 71 fibril_condvar_t data_consumed; 68 72 aoff64_t start; /**< File offset where first data block resides */ 69 size_t size; /**< File size if type is PIPEFS_FILE.*/70 link_t data_head; /**< Head of data blocks list for PIPEFS_FILE.*/73 uint8_t *data; /**< Pointer to data buffer */ 74 size_t data_size; /**< Number of remaining bytes in the data buffer */ 71 75 /* This is for directory */ 72 link_t cs_head; /**< Head of child's siblings list. */ 76 link_t cs_head; /**< Head of child's siblings list. */ 73 77 } pipefs_node_t; 74 75 typedef struct pipefs_data_block {76 link_t link; /**< Linkage for the list of data blocks */77 size_t size; /**< Size of this block */78 void *data; /**< Data for this block */79 } pipefs_data_block_t;80 78 81 79 extern fs_reg_t pipefs_reg;
Note:
See TracChangeset
for help on using the changeset viewer.