diff options
author | Marvin Borner | 2021-01-10 13:19:50 +0100 |
---|---|---|
committer | Marvin Borner | 2021-01-10 13:19:50 +0100 |
commit | 3619c820f8ff5918cf122a031bde6305d32f6528 (patch) | |
tree | 2eb38cc5bfd51529a5e5c603ee9801569307ff17 /kernel/features/fs.c | |
parent | ff9c7766edded74f4d522484c828b1bdc7dfa96d (diff) |
Started procfs
Diffstat (limited to 'kernel/features/fs.c')
-rw-r--r-- | kernel/features/fs.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/features/fs.c b/kernel/features/fs.c index 14e6a9c..ab2e236 100644 --- a/kernel/features/fs.c +++ b/kernel/features/fs.c @@ -185,14 +185,12 @@ void device_install(void) { devices = list_new(); - struct vfs *vfs; - struct device *dev; - - vfs = malloc(sizeof(*vfs)); + struct vfs *vfs = malloc(sizeof(*vfs)); vfs->type = VFS_DEVFS; vfs->read = devfs_read; - dev = malloc(sizeof(*dev)); + struct device *dev = malloc(sizeof(*dev)); dev->name = "dev"; + dev->type = DEV_CHAR; dev->vfs = vfs; device_add(dev); vfs_mount(dev, "/dev/"); |