Skip to content

Bitmap allocator

include/mem/bitmap.h View source View on GitHub
paddr_t bitmap_alloc_pages(uint64_t count, enum alloc_flags f)
source
void bitmap_free_pages(paddr_t addr, uint64_t count)
source
cc_no_asan void set_bit(uint64_t index)
source
cc_no_asan void clear_bit(uint64_t index)
source
cc_no_asan bool test_bit(uint64_t index)
source
paddr_t bitmap_alloc_page(void)
source
extern uint8_t boot_bitmap[BOOT_BITMAP_SIZE]
source
extern uint8_t *bitmap
source
extern uint64_t bitmap_size
source
#define BOOT_BITMAP_SIZE (MIB(128) / PAGE_SIZE / 8)
source