diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-21 16:44:18 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-21 16:44:18 -0400 |
commit | a0c8aa6aedc4177823e58a66793af57a57dfb56f (patch) | |
tree | c446a27331c1bf6ec115f61f4f38d170b251278c /kernel/user.c | |
parent | fs read/write functions, initrd (diff) | |
download | comus-a0c8aa6aedc4177823e58a66793af57a57dfb56f.tar.gz comus-a0c8aa6aedc4177823e58a66793af57a57dfb56f.tar.bz2 comus-a0c8aa6aedc4177823e58a66793af57a57dfb56f.zip |
fmt, rename some fns
Diffstat (limited to '')
-rw-r--r-- | kernel/user.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/user.c b/kernel/user.c new file mode 100644 index 0000000..0a237e9 --- /dev/null +++ b/kernel/user.c @@ -0,0 +1,11 @@ +#include <comus/procs.h> +#include <comus/memory.h> + +void user_cleanup(struct pcb *pcb) +{ + if (pcb == NULL) + return; + + mem_ctx_free(pcb->memctx); + pcb->memctx = NULL; +} |