Subversion Repositories HelenOS

Rev

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

Rev 2523 Rev 2526
Line 35... Line 35...
35
 
35
 
36
#include <ipc/ipc.h>
36
#include <ipc/ipc.h>
37
 
37
 
38
#define VFS_FIRST   FIRST_USER_METHOD
38
#define VFS_FIRST   FIRST_USER_METHOD
39
 
39
 
-
 
40
#define IPC_METHOD_TO_VFS_OP(m) ((m) - VFS_FIRST)   
-
 
41
 
40
typedef enum {
42
typedef enum {
41
    VFS_REGISTER = VFS_FIRST,
43
    VFS_REGISTER = VFS_FIRST,
42
    VFS_MOUNT,
44
    VFS_MOUNT,
43
    VFS_UNMOUNT,
45
    VFS_UNMOUNT,
44
    VFS_OPEN,
46
    VFS_OPEN,
Line 70... Line 72...
70
 * registered FS. More importantly, through this structure, the FS announces
72
 * registered FS. More importantly, through this structure, the FS announces
71
 * what operations it supports.
73
 * what operations it supports.
72
 */
74
 */
73
typedef struct {
75
typedef struct {
74
    /** Unique identifier of the fs. */
76
    /** Unique identifier of the fs. */
75
    char fs_name[FS_NAME_MAXLEN];
77
    char name[FS_NAME_MAXLEN];
76
   
78
   
77
    /** Operations. */
79
    /** Operations. */
78
    vfs_op_t ops[VFS_LAST - VFS_FIRST];
80
    vfs_op_t ops[VFS_LAST - VFS_FIRST];
79
} vfs_info_t;
81
} vfs_info_t;
80
 
82
 
-
 
83
typedef struct {
-
 
84
    link_t fs_link;
-
 
85
    vfs_info_t vfs_info;
-
 
86
} fs_info_t;
-
 
87
 
81
#endif
88
#endif
82
 
89
 
83
/**
90
/**
84
 * @}
91
 * @}
85
 */
92
 */