Changeset 66bea243 in mainline for uspace/srv/fs/pipefs/pipefs.h


Ignore:
Timestamp:
2011-03-09T20:48:54Z (14 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f8c60f5
Parents:
868ef40
Message:

Some unrelated changes to pipefs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/pipefs/pipefs.h

    r868ef40 r66bea243  
    3939#include <bool.h>
    4040#include <adt/hash_table.h>
     41#include <fibril_synch.h>
    4142
    4243#define PIPEFS_NODE(node)       ((node) ? (pipefs_node_t *)(node)->data : NULL)
     
    6667        unsigned lnkcnt;        /**< Link count. */
    6768        /* 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;
    6872        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 */
    7175        /* 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. */
    7377} 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;
    8078
    8179extern fs_reg_t pipefs_reg;
Note: See TracChangeset for help on using the changeset viewer.