ck_bitmap_next (3) - Linux Manuals
ck_bitmap_next: iterate to the next set bit in bitmap
NAME
ck_bitmap_next - iterate to the next set bit in bitmapLIBRARY
Concurrency Kit (libck, -lck)SYNOPSIS
In ck_bitmap.h Ft bool Fn ck_bitmap_next ck_bitmap_t *bitmap ck_bitmap_iterator_t iterator unsigned int *bitDESCRIPTION
The Fn ck_bitmap_next function will increment the iterator object pointed to by Fa iterator to point to the next set bit in the bitmap. If Fn ck_bitmap_next returns true then the pointer pointed to by Fa bit is initialized to the number of the current set bit pointed to by the Fa iterator object.It is expected that Fa iterator has been initialized using the ck_bitmap_iterator_init3 function.
RETURN VALUES
If Fn ck_bitmap_next returns true then the object pointed to by Fa bit contains a set bit. If Fn ck_bitmap_next returns false then value of the object pointed to by Fa bit is undefined.ERRORS
Behavior is undefined if Fa iterator or Fa bitmap are uninitialized.SEE ALSO
ck_bitmap_base3, ck_bitmap_size3, ck_bitmap_init3, ck_bitmap_set3, ck_bitmap_reset3, ck_bitmap_clear3, ck_bitmap_bits3, ck_bitmap_buffer3, ck_bitmap_iterator_init3Additional information available at http://concurrencykit.org/