From 473112b1541cf81fa3670e0d1cb6de1c4a3281de Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 16 Jul 2024 23:55:32 +0200 Subject: kernel: make kmalloc accept a numeric "tag" instead of a freeform description This will both let me save space in the allocation header, and make the debugprint more readable. --- src/kernel/vfs/procfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/vfs/procfs.c') diff --git a/src/kernel/vfs/procfs.c b/src/kernel/vfs/procfs.c index 86042cd..ab57628 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, "proc fd"); + h = kmalloc(sizeof *h, TagProcessHandle); 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), "kern fs"); + VfsBackend *be = kzalloc(sizeof(VfsBackend), TagProcFs); *be = (VfsBackend) { .is_user = false, .usehcnt = 1, -- cgit v1.2.3