LF OS
Hobby operating system for amd64 with high ambitions
|
Go to the source code of this file.
Typedefs | |
typedef uint8_t * | bitmap_t |
Type for a single entry in the array. | |
Functions | |
static size_t | bitmap_size (size_t num_entries) |
Return the size of the bitmap in bytes for a given amount of entries. | |
static uint64_t | bitmap_idx (uint64_t entry) |
Return the index in the bitmap array for the given bitmap index. | |
static uint8_t | bitmap_bit (uint64_t entry) |
Return the bitmask for the given bitmap index. | |
static bool | bitmap_get (bitmap_t bitmap, uint64_t entry) |
Retrieve state of the given entry from bitmap. | |
static void | bitmap_set (bitmap_t bitmap, uint64_t entry) |
Set given entry in bitmap. | |
static void | bitmap_clear (bitmap_t bitmap, uint64_t entry) |
Unset given entry in bitmap. | |
Unset given entry in bitmap.
Definition at line 36 of file bitmap.h.
References bitmap_idx(), and entry.
Retrieve state of the given entry from bitmap.
Definition at line 26 of file bitmap.h.
References bitmap_bit(), bitmap_idx(), and entry.
Set given entry in bitmap.
Definition at line 31 of file bitmap.h.
References bitmap_bit(), bitmap_idx(), and entry.