From 7876e466c222ed015bc65c7ab4f63d05596ede2c Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Fri, 25 Apr 2025 10:02:29 -0400 Subject: virt ctx clone --- kernel/memory/virtalloc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kernel/memory/virtalloc.h') diff --git a/kernel/memory/virtalloc.h b/kernel/memory/virtalloc.h index 78adc46..9a94208 100644 --- a/kernel/memory/virtalloc.h +++ b/kernel/memory/virtalloc.h @@ -52,6 +52,11 @@ struct virt_ctx { */ void virtaddr_init(struct virt_ctx *ctx); +/** + * Clone the virtual address allocator + */ +int virtaddr_clone(struct virt_ctx *old, struct virt_ctx *new); + /** * Allocate a virtual address of length x pages * @param pages - x pages -- cgit v1.2.3-freya