Changeset b6035ba in mainline for uspace/srv/fs/tmpfs/tmpfs.h


Ignore:
Timestamp:
2009-05-05T22:09:13Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
770d281
Parents:
c852f4be
Message:

Introduce the concept of FS nodes. A FS node is a typed abstraction of
file-system-specific node type. It replaces the void * in libfs interfaces
and is suitable for holding various information such as mount point data.

File:
1 edited

Legend:

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

    rc852f4be rb6035ba  
    4545#endif
    4646
     47#define TMPFS_NODE(node)        ((node) ? (tmpfs_dentry_t *)(node)->data : NULL)
     48#define FS_NODE(node)           ((node) ? (node)->bp : NULL)
     49
    4750typedef enum {
    4851        TMPFS_NONE,
     
    5255
    5356typedef struct tmpfs_dentry {
     57        fs_node_t *bp;          /**< Back pointer to the FS node. */
    5458        fs_index_t index;       /**< TMPFS node index. */
    5559        dev_handle_t dev_handle;/**< Device handle. */
Note: See TracChangeset for help on using the changeset viewer.