find_next_zero_bit and DECLARE_BITMAP

find_next_zero_bit:int find_next_zero_bit(const unsigned long *addr, int size, int offset)查询*addr中,从第offset位开始,第一个不为0的位的位数(最低位从0开始),注: offset最小值为0,最大值为sizeof(unsigned long)*8 - 1//why * 8??sample:例如查找位图bitmap(共32位)的第5位开始第一个不为0的位的位数(查询结果为5)--5   4   3   2   1   0|---|---|---|---|---|---|| 0 | 1 | 1 | 1 | 1 | 1 |            |---|---|---|---|---|---|   bitmap = 31 = 011111-------------------------------------------------

你可能感兴趣的:(find_next_zero_bit and DECLARE_BITMAP)