Subversion Repositories HelenOS

Rev

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

Rev 2690 Rev 2691
Line 136... Line 136...
136
 
136
 
137
typedef struct {
137
typedef struct {
138
    VFS_TRIPLET;
138
    VFS_TRIPLET;
139
} vfs_triplet_t;
139
} vfs_triplet_t;
140
 
140
 
-
 
141
typedef struct {
-
 
142
    vfs_triplet_t triplet;
-
 
143
    size_t size;
-
 
144
} vfs_lookup_res_t;
-
 
145
 
141
/**
146
/**
142
 * Instances of this type represent an active, in-memory VFS node and any state
147
 * Instances of this type represent an active, in-memory VFS node and any state
143
 * which may be associated with it.
148
 * which may be associated with it.
144
 */
149
 */
145
typedef struct {
150
typedef struct {
Line 196... Line 201...
196
extern int vfs_grab_phone(int);
201
extern int vfs_grab_phone(int);
197
extern void vfs_release_phone(int);
202
extern void vfs_release_phone(int);
198
 
203
 
199
extern int fs_name_to_handle(char *, bool);
204
extern int fs_name_to_handle(char *, bool);
200
 
205
 
201
extern int vfs_lookup_internal(char *, size_t, vfs_triplet_t *, size_t *,
206
extern int vfs_lookup_internal(char *, size_t, vfs_lookup_res_t *,
202
    vfs_pair_t *);
207
    vfs_pair_t *);
203
 
208
 
204
extern bool vfs_nodes_init(void);
209
extern bool vfs_nodes_init(void);
205
extern vfs_node_t *vfs_node_get(vfs_triplet_t *, size_t);
210
extern vfs_node_t *vfs_node_get(vfs_lookup_res_t *);
206
extern void vfs_node_put(vfs_node_t *);
211
extern void vfs_node_put(vfs_node_t *);
207
 
212
 
208
#define MAX_OPEN_FILES  128
213
#define MAX_OPEN_FILES  128
209
 
214
 
210
extern bool vfs_files_init(void);
215
extern bool vfs_files_init(void);