Changeset 8d1aab7 in mainline for uspace/srv/fs/pipefs/pipefs.h


Ignore:
Timestamp:
2010-11-24T18:59:47Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f5648d8
Parents:
5bd4f2c
Message:

Changes for simple pipefs behaviour. Currently it does not support waiting for data.

File:
1 edited

Legend:

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

    r5bd4f2c r8d1aab7  
    6666        pipefs_dentry_type_t type;
    6767        unsigned lnkcnt;        /**< Link count. */
     68        /* Following is for nodes of type PIPEFS_FILE */
     69        aoff64_t start;         /**< File offset where first data block resides */
    6870        size_t size;            /**< File size if type is PIPEFS_FILE. */
    69         void *data;             /**< File content's if type is PIPEFS_FILE. */
    70         link_t cs_head;         /**< Head of child's siblings list. */
     71        link_t data_head;       /**< Head of data blocks list for PIPEFS_FILE. */
     72        /* This is for directory */
     73        link_t cs_head;         /**< Head of child's siblings list. */ 
    7174} pipefs_node_t;
     75
     76typedef struct pipefs_data_block {
     77        link_t link;            /**< Linkage for the list of data blocks */
     78        size_t size;            /**< Size of this block */
     79        void *data;                     /**< Data for this block */
     80} pipefs_data_block_t;
    7281
    7382extern fs_reg_t pipefs_reg;
Note: See TracChangeset for help on using the changeset viewer.