diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-04-25 10:02:29 -0400 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-04-25 10:06:00 -0400 |
| commit | 7876e466c222ed015bc65c7ab4f63d05596ede2c (patch) | |
| tree | a4f541a79a06b612e8b8846414e880b281c439a0 /kernel/memory/virtalloc.h | |
| parent | make alloc_pages_at() able to allocate noncontiguous physical pages (diff) | |
| download | comus-7876e466c222ed015bc65c7ab4f63d05596ede2c.tar.gz comus-7876e466c222ed015bc65c7ab4f63d05596ede2c.tar.bz2 comus-7876e466c222ed015bc65c7ab4f63d05596ede2c.zip | |
virt ctx clone
Diffstat (limited to '')
| -rw-r--r-- | kernel/memory/virtalloc.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ -53,6 +53,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 * @returns virt addr |