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

Function bitmap_size

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

Get bitmap size * * Return the size (in bytes) required for the bitmap. * * @param elements Number bits stored in bitmap. * * @return Size (in bytes) required for the bitmap. * */

Source from the content-addressed store, hash-verified

75 *
76 */
77size_t bitmap_size(size_t elements)
78{
79 size_t size = elements / BITMAP_ELEMENT;
80
81 if ((elements % BITMAP_ELEMENT) != 0)
82 size++;
83
84 return size;
85}
86
87/** Initialize bitmap.
88 *

Callers 6

io_perm_bitmap_installFunction · 0.85
io_perm_bitmap_installFunction · 0.85
ddi_iospace_enable_archFunction · 0.85
zone_conf_sizeFunction · 0.85
bitmap_allocate_rangeFunction · 0.85
ddi_iospace_enable_archFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected