diff options
author | dzwdz | 2024-03-13 22:33:38 +0100 |
---|---|---|
committer | dzwdz | 2024-03-13 22:46:47 +0100 |
commit | 72f55421fb61b750512f324d284b30e3e67e36e0 (patch) | |
tree | 8933dc013580a2440730644807a03606c6805547 /src/kernel/vfs/procfs.c | |
parent | e47412d940db4e9be2d05608272e30f560a275d0 (diff) |
kernel/malloc: slight rework (it's still bad), store more metadata
Diffstat (limited to 'src/kernel/vfs/procfs.c')
-rw-r--r-- | src/kernel/vfs/procfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/vfs/procfs.c b/src/kernel/vfs/procfs.c index 4bacaf7..79dfdc0 100644 --- a/src/kernel/vfs/procfs.c +++ b/src/kernel/vfs/procfs.c @@ -73,7 +73,7 @@ openpath(const char *path, size_t len, Proc *root) return NULL; } - h = kmalloc(sizeof *h); + h = kmalloc(sizeof *h, "proc fd"); h->gid = gid; h->type = type; return h; @@ -182,7 +182,7 @@ isdigit(int c) { VfsBackend * procfs_backend(Proc *proc) { - VfsBackend *be = kzalloc(sizeof(VfsBackend)); + VfsBackend *be = kzalloc(sizeof(VfsBackend), "kern fs"); *be = (VfsBackend) { .is_user = false, .provhcnt = 1, |