bitmap_find_next_zero_area_off — find a contiguous aligned zero area


unsigned long bitmap_find_next_zero_area_off (unsigned long * map,
 unsigned long size,
 unsigned long start,
 unsigned int nr,
 unsigned long align_mask,
 unsigned long align_offset);


unsigned long * map

The address to base the search on

unsigned long size

The bitmap size in bits

unsigned long start

The bitnumber to start searching at

unsigned int nr

The number of zeroed bits we're looking for

unsigned long align_mask

Alignment mask for zero area

unsigned long align_offset

Alignment offset for zero area.


The align_mask should be one less than a power of 2; the effect is that the bit offset of all zero areas this function finds plus align_offset is multiple of that power of 2.