diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-23 10:10:24 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-23 10:10:24 -0400 |
commit | 6fb9f18fd64cad9b22a4933bdb1d8c9639b2128c (patch) | |
tree | 2b4c80c247fed85f90ed8db5ef6990a916c7f342 /sys/kern | |
parent | 103f3e8ca854c5ee83e2d5525d574d10964b583a (diff) |
kernel: fs: Add procfs support
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_init.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c index fa20af3..6754b1f 100644 --- a/sys/kern/vfs_init.c +++ b/sys/kern/vfs_init.c @@ -34,6 +34,7 @@ #include <sys/vnode.h> #include <fs/initramfs.h> #include <fs/devfs.h> +#include <fs/procfs.h> #include <assert.h> #include <string.h> @@ -43,10 +44,12 @@ __KERNEL_META("$Hyra$: vfs.c, Ian Marco Moffett, " #define INITRAMFS_ID 0 #define DEVFS_ID 1 +#define PROCFS_ID 2 static struct fs_info filesystems[] = { [INITRAMFS_ID] = { "initramfs", &g_initramfs_ops, NULL}, - [DEVFS_ID] = { "dev", &g_devfs_ops, &g_devfs_vops } + [DEVFS_ID] = { "dev", &g_devfs_ops, &g_devfs_vops }, + [PROCFS_ID] = { "proc", &g_procfs_ops, &g_procfs_vops } }; struct vnode *g_root_vnode = NULL; |