Subversion Repositories HelenOS

Rev

Rev 2709 | Rev 2731 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2709 Rev 2730
Line 171... Line 171...
171
#define L_DESTROY   16
171
#define L_DESTROY   16
172
 
172
 
173
typedef struct {
173
typedef struct {
174
    vfs_triplet_t triplet;
174
    vfs_triplet_t triplet;
175
    size_t size;
175
    size_t size;
-
 
176
    unsigned lnkcnt;
176
} vfs_lookup_res_t;
177
} vfs_lookup_res_t;
177
 
178
 
178
/**
179
/**
179
 * Instances of this type represent an active, in-memory VFS node and any state
180
 * Instances of this type represent an active, in-memory VFS node and any state
180
 * which may be associated with it.
181
 * which may be associated with it.
181
 */
182
 */
182
typedef struct {
183
typedef struct {
183
    VFS_TRIPLET;        /**< Identity of the node. */
184
    VFS_TRIPLET;        /**< Identity of the node. */
-
 
185
 
-
 
186
    /**
-
 
187
     * Usage counter.  This includes, but is not limited to, all vfs_file_t
-
 
188
     * structures that reference this node.
-
 
189
     */
184
    unsigned refcnt;    /**< Usage counter. */
190
    unsigned refcnt;
-
 
191
   
-
 
192
    /** Number of names this node has in the file system namespace. */
-
 
193
    unsigned lnkcnt;
-
 
194
 
185
    link_t nh_link;     /**< Node hash-table link. */
195
    link_t nh_link;     /**< Node hash-table link. */
186
    size_t size;        /**< Cached size of the file. */
196
    size_t size;        /**< Cached size of the file. */
187
 
197
 
188
    /**
198
    /**
189
     * Holding this rwlock prevents modifications of the node's contents.
199
     * Holding this rwlock prevents modifications of the node's contents.