diff options
author | Marvin Borner | 2021-04-25 16:31:40 +0200 |
---|---|---|
committer | Marvin Borner | 2021-04-25 16:31:40 +0200 |
commit | 0fe14a1ff936c38ab9aa7f85219d0c155d276823 (patch) | |
tree | b3e4b1f9000819a564656fabf0496f871c1e6eba /kernel/features/proc.c | |
parent | f2b4acb2fe6a366288b19843e0d2678b8590bdf4 (diff) |
Added range-based memory validator
Diffstat (limited to 'kernel/features/proc.c')
-rw-r--r-- | kernel/features/proc.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/kernel/features/proc.c b/kernel/features/proc.c index 4cf4005..b47df0b 100644 --- a/kernel/features/proc.c +++ b/kernel/features/proc.c @@ -256,17 +256,6 @@ struct procfs_message { u32 size; }; -static res procfs_write(const char *path, void *buf, u32 offset, u32 count, struct vfs_dev *dev) -{ - UNUSED(path); - UNUSED(buf); - UNUSED(offset); - UNUSED(count); - UNUSED(dev); - - return -ENOENT; -} - static res procfs_read(const char *path, void *buf, u32 offset, u32 count, struct vfs_dev *dev) { (void)dev; @@ -331,7 +320,6 @@ NORETURN void proc_init(void) struct vfs *vfs = zalloc(sizeof(*vfs)); vfs->type = VFS_PROCFS; vfs->read = procfs_read; - vfs->write = procfs_write; vfs->perm = procfs_perm; vfs->data = NULL; struct vfs_dev *dev = zalloc(sizeof(*dev)); |