aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs/vfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/fs/vfs.h')
-rw-r--r--src/kernel/fs/vfs.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/kernel/fs/vfs.h b/src/kernel/fs/vfs.h
index 5a72861..80b854a 100644
--- a/src/kernel/fs/vfs.h
+++ b/src/kernel/fs/vfs.h
@@ -3,13 +3,13 @@
#include <stdint.h>
-#define FS_FILE 0x01
-#define FS_DIRECTORY 0x02
-#define FS_CHARDEVICE 0x03
+#define FS_FILE 0x01
+#define FS_DIRECTORY 0x02
+#define FS_CHARDEVICE 0x03
#define FS_BLOCKDEVICE 0x04
-#define FS_PIPE 0x05
-#define FS_SYMLINK 0x06
-#define FS_MOUNTPOINT 0x08
+#define FS_PIPE 0x05
+#define FS_SYMLINK 0x06
+#define FS_MOUNTPOINT 0x08
struct fs_node;
@@ -26,26 +26,26 @@ typedef struct dirent *(*readdir_type_t)(struct fs_node *, uint32_t);
typedef struct fs_node *(*finddir_type_t)(struct fs_node *, char *name);
typedef struct fs_node {
- char name[128];
- uint32_t mask;
- uint32_t uid;
- uint32_t gid;
- uint32_t flags;
- uint32_t inode;
- uint32_t length;
- uint32_t impl;
- read_type_t read;
- write_type_t write;
- open_type_t open;
- close_type_t close;
- readdir_type_t readdir;
- finddir_type_t finddir;
- struct fs_node *ptr;
+ char name[128];
+ uint32_t mask;
+ uint32_t uid;
+ uint32_t gid;
+ uint32_t flags;
+ uint32_t inode;
+ uint32_t length;
+ uint32_t impl;
+ read_type_t read;
+ write_type_t write;
+ open_type_t open;
+ close_type_t close;
+ readdir_type_t readdir;
+ finddir_type_t finddir;
+ struct fs_node *ptr;
} fs_node_t;
struct dirent {
- char name[128];
- uint32_t ino;
+ char name[128];
+ uint32_t ino;
};
extern fs_node_t *fs_root;