MCPcopy Create free account
hub / github.com/HelenOS/helenos / bitmap_initialize

Function bitmap_initialize

kernel/generic/src/adt/bitmap.c:98–103  ·  view source on GitHub ↗

Initialize bitmap. * * No portion of the bitmap is set or cleared by this function. * * @param bitmap Bitmap structure. * @param elements Number of bits stored in bitmap. * @param data Address of the memory used to hold the map. * The optional 2nd level bitmap follows the 1st * level bitmap. * */

Source from the content-addressed store, hash-verified

96 *
97 */
98void bitmap_initialize(bitmap_t *bitmap, size_t elements, void *data)
99{
100 bitmap->elements = elements;
101 bitmap->bits = (uint8_t *) data;
102 bitmap->next_fit = 0;
103}
104
105/** Set range of bits.
106 *

Callers 8

io_perm_bitmap_installFunction · 0.85
task_create_archFunction · 0.85
io_perm_bitmap_installFunction · 0.85
task_create_archFunction · 0.85
ddi_iospace_enable_archFunction · 0.85
zone_merge_internalFunction · 0.85
zone_constructFunction · 0.85
ddi_iospace_enable_archFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected