ck_bitmap_init (3) - Linux Manuals

ck_bitmap_init: initialize a bitmap

NAME

ck_bitmap_init - initialize a bitmap

LIBRARY

Concurrency Kit (libck, -lck)

SYNOPSIS

In ck_bitmap.h Ft void Fn ck_bitmap_init ck_bitmap_t *bitmap unsigned int n_bits bool set

DESCRIPTION

The Fn ck_bitmap_init function initializes the bitmap pointed to by the Fa bitmap pointer. The argument Fa n_bits specifies the number of bits that are to be stored in the bitmap. The argument Fa set determines whether the values of the bits in Fa bitmap are to be initialized to 1 or 0

It is expected that Fa bitmap points to a contiguous region of memory containing at least the number of bytes specified by ck_bitmap_size3.

RETURN VALUES

This function has no return value.

ERRORS

The behavior of Fn ck_bitmap_init is undefined if Fa bitmap is not a pointer to a region of bytes of at least ck_bitmap_size3 length.

SEE ALSO

ck_bitmap_base3, ck_bitmap_size3, ck_bitmap_set3, ck_bitmap_reset3, ck_bitmap_clear3, ck_bitmap_test3, ck_bitmap_bits3, ck_bitmap_buffer3

Additional information available at http://concurrencykit.org/