PatchworkOS
321f6ec
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
bitmap_init.c
Go to the documentation of this file.
1
#include <
sys/bitmap.h
>
2
3
void
bitmap_init
(
bitmap_t
*
map
,
void
*
buffer
,
uint64_t
length)
4
{
5
map
->firstZeroIdx = 0;
6
map
->
length
= length;
7
map
->buffer = (
uint64_t
*)
buffer
;
8
}
bitmap.h
bitmap_init
void bitmap_init(bitmap_t *map, void *buffer, uint64_t length)
Initialize a bitmap.
Definition
bitmap_init.c:3
map
boot_memory_map_t * map
Definition
mem.c:19
buffer
EFI_PHYSICAL_ADDRESS buffer
Definition
mem.c:15
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:17
bitmap_t
Bitmap structure.
Definition
bitmap.h:22
boot_memory_map_t::length
uint64_t length
Definition
boot_info.h:58
src
libstd
functions
bitmap
bitmap_init.c
Generated on Mon Dec 15 2025 15:56:54 for PatchworkOS by
1.9.8