aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/proc.c
diff options
context:
space:
mode:
authorMarvin Borner2021-04-25 16:31:40 +0200
committerMarvin Borner2021-04-25 16:31:40 +0200
commit0fe14a1ff936c38ab9aa7f85219d0c155d276823 (patch)
treeb3e4b1f9000819a564656fabf0496f871c1e6eba /kernel/features/proc.c
parentf2b4acb2fe6a366288b19843e0d2678b8590bdf4 (diff)
Added range-based memory validator
Diffstat (limited to 'kernel/features/proc.c')
-rw-r--r--kernel/features/proc.c12
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));