Subversion Repositories HelenOS

Rev

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

Rev 4539 Rev 4555
Line 34... Line 34...
34
#define VFS_VFS_H_
34
#define VFS_VFS_H_
35
 
35
 
36
#include <ipc/ipc.h>
36
#include <ipc/ipc.h>
37
#include <adt/list.h>
37
#include <adt/list.h>
38
#include <fibril_sync.h>
38
#include <fibril_sync.h>
39
#include <futex.h>
-
 
40
#include <sys/types.h>
39
#include <sys/types.h>
41
#include <devmap.h>
40
#include <devmap.h>
42
#include <bool.h>
41
#include <bool.h>
43
#include <ipc/vfs.h>
42
#include <ipc/vfs.h>
44
 
43
 
Line 143... Line 142...
143
 
142
 
144
    /** Current position in the file. */
143
    /** Current position in the file. */
145
    off_t pos;
144
    off_t pos;
146
} vfs_file_t;
145
} vfs_file_t;
147
 
146
 
148
extern futex_t nodes_futex;
147
extern fibril_mutex_t nodes_mutex;
149
 
148
 
150
extern link_t fs_head;      /**< List of registered file systems. */
149
extern link_t fs_head;      /**< List of registered file systems. */
151
 
150
 
152
extern vfs_pair_t rootfs;   /**< Root file system. */
151
extern vfs_pair_t rootfs;   /**< Root file system. */
153
 
152
 
Line 156... Line 155...
156
    link_t  plb_link;   /**< Active PLB entries list link. */
155
    link_t  plb_link;   /**< Active PLB entries list link. */
157
    unsigned index;     /**< Index of the first character in PLB. */
156
    unsigned index;     /**< Index of the first character in PLB. */
158
    size_t len;     /**< Number of characters in this PLB entry. */
157
    size_t len;     /**< Number of characters in this PLB entry. */
159
} plb_entry_t;
158
} plb_entry_t;
160
 
159
 
161
extern futex_t plb_futex;   /**< Futex protecting plb and plb_head. */
160
extern fibril_mutex_t plb_mutex;/**< Mutex protecting plb and plb_head. */
162
extern uint8_t *plb;        /**< Path Lookup Buffer */
161
extern uint8_t *plb;        /**< Path Lookup Buffer */
163
extern link_t plb_head;     /**< List of active PLB entries. */
162
extern link_t plb_head;     /**< List of active PLB entries. */
164
 
163
 
165
#define MAX_MNTOPTS_LEN     256
164
#define MAX_MNTOPTS_LEN     256
166
 
165