Subversion Repositories HelenOS

Rev

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

Rev 4465 Rev 4552
Line 33... Line 33...
33
#ifndef FAT_FAT_H_
33
#ifndef FAT_FAT_H_
34
#define FAT_FAT_H_
34
#define FAT_FAT_H_
35
 
35
 
36
#include "fat_fat.h"
36
#include "fat_fat.h"
37
#include <ipc/ipc.h>
37
#include <ipc/ipc.h>
-
 
38
#include <fibril_sync.h>
38
#include <libfs.h>
39
#include <libfs.h>
39
#include <atomic.h>
40
#include <atomic.h>
40
#include <sys/types.h>
41
#include <sys/types.h>
41
#include <bool.h>
42
#include <bool.h>
42
#include "../../vfs/vfs.h"
43
#include "../../vfs/vfs.h"
Line 158... Line 159...
158
    /** Used indices (position) hash table link. */
159
    /** Used indices (position) hash table link. */
159
    link_t      uph_link;
160
    link_t      uph_link;
160
    /** Used indices (index) hash table link. */
161
    /** Used indices (index) hash table link. */
161
    link_t      uih_link;
162
    link_t      uih_link;
162
 
163
 
163
    futex_t     lock;
164
    fibril_mutex_t  lock;
164
    dev_handle_t    dev_handle;
165
    dev_handle_t    dev_handle;
165
    fs_index_t  index;
166
    fs_index_t  index;
166
    /**
167
    /**
167
     * Parent node's first cluster.
168
     * Parent node's first cluster.
168
     * Zero is used if this node is not linked, in which case nodep must
169
     * Zero is used if this node is not linked, in which case nodep must
Line 179... Line 180...
179
/** FAT in-core node. */
180
/** FAT in-core node. */
180
typedef struct fat_node {
181
typedef struct fat_node {
181
    /** Back pointer to the FS node. */
182
    /** Back pointer to the FS node. */
182
    fs_node_t       *bp;
183
    fs_node_t       *bp;
183
   
184
   
184
    futex_t         lock;
185
    fibril_mutex_t      lock;
185
    fat_node_type_t     type;
186
    fat_node_type_t     type;
186
    fat_idx_t       *idx;
187
    fat_idx_t       *idx;
187
    /**
188
    /**
188
     *  Node's first cluster.
189
     *  Node's first cluster.
189
     *  Zero is used for zero-length nodes.
190
     *  Zero is used for zero-length nodes.