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. * */
| 96 | * |
| 97 | */ |
| 98 | void 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 | * |
no outgoing calls
no test coverage detected