|
PatchworkOS
|
#include <kernel/log/log.h>#include <kernel/mem/pmm_bitmap.h>#include <assert.h>#include <sys/math.h>Go to the source code of this file.
Functions | |
| void | pmm_bitmap_init (pmm_bitmap_t *bitmap, void *buffer, uint64_t size, uintptr_t maxAddr) |
| Initializes a PMM bitmap. | |
| void * | pmm_bitmap_alloc (pmm_bitmap_t *bitmap, uint64_t count, uintptr_t maxAddr, uint64_t alignment) |
| Allocates a contiguous region of pages from the bitmap. | |
| void | pmm_bitmap_free (pmm_bitmap_t *bitmap, void *address, uint64_t count) |
| Frees a region of pages, returning them to the bitmap. | |