aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-10 11:24:46 -0400
committerIan Moffett <ian@osmora.org>2024-04-10 11:24:46 -0400
commit190f059455b7057c99cb3b24ca63d5ff0872a562 (patch)
tree5ec53b33cf6a5ad98f532b76152791f31e293d3c /sys/kern
parent0296ec6874f69034488f0c90d8d54059f32aa3c0 (diff)
kernel: fs: Add devfs
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c
index 9039e6a..8b0b119 100644
--- a/sys/kern/vfs_init.c
+++ b/sys/kern/vfs_init.c
@@ -33,6 +33,7 @@
#include <sys/types.h>
#include <sys/vnode.h>
#include <fs/initramfs.h>
+#include <fs/devfs.h>
#include <assert.h>
#include <string.h>
@@ -41,9 +42,11 @@ __KERNEL_META("$Hyra$: vfs.c, Ian Marco Moffett, "
"Hyra Virtual File System");
#define INITRAMFS_ID 0
+#define DEVFS_ID 1
static struct fs_info filesystems[] = {
[INITRAMFS_ID] = { "initramfs", &g_initramfs_ops, NULL},
+ [DEVFS_ID] = { "dev", &g_devfs_ops, &g_devfs_vops }
};
struct vnode *g_root_vnode = NULL;