1CK_BITMAP_SIZE(3)        BSD Library Functions Manual        CK_BITMAP_SIZE(3)
2

NAME

4     ck_bitmap_size — returns necessary number of bytes for bitmap
5

LIBRARY

7     Concurrency Kit (libck, -lck)
8

SYNOPSIS

10     #include <ck_bitmap.h>
11
12     unsigned int
13     ck_bitmap_size(unsigned int n_bits);
14

DESCRIPTION

16     The ck_bitmap_size() function returns the number of bytes that are neces‐
17     sary to allocate for a bitmap that will contain the number of bits speci‐
18     fied by n_bits.
19
20     This function is used to determine how many bytes to allocate for dynami‐
21     cally created bitmap objects. The allocated object must still be initial‐
22     ized using ck_bitmap_init(3).
23

RETURN VALUES

25     This function returns a non-zero value.
26

SEE ALSO

28     ck_bitmap_base(3), ck_bitmap_init(3), ck_bitmap_set_mpmc(3),
29     ck_bitmap_reset_mpmc(3), ck_bitmap_test(3), ck_bitmap_clear(3),
30     ck_bitmap_bits(3), ck_bitmap_buffer(3)
31
32     Additional information available at http://concurrencykit.org/
33
34                                April 22, 2012
Impressum