for_each_set_bitrange(9)
β¨ NAME β¨
okay so welcome to the for_each_set_bitrange(9) page from the Kernel API Manual, bestie π β this one is literally about one job: iterate over all set bit ranges [b; e). iconic behavior, no cap β¨
π SYNOPSIS π
the signature is right here, fr fr:
for_each_set_bitrange (b , e , addr , size );
π ARGUMENTS π
these four are the whole squad π«Ά:
bβ bit offset of start of current bitrange (first set bit) β¨eβ bit offset of end of current bitrange (first unset bit) πaddrβ bitmap address to base the search on π¦sizeβ bitmap size in number of bits πΈ
π¦ SEE ALSO π¦
the Kernel file is ./include/linux/find.h, and these are the linked besties β all of them, lowkey a whole group chat π:
find_next_bit(9)find_next_and_bit(9)find_next_andnot_bit(9)find_next_or_bit(9)find_next_zero_bit(9)find_first_bit(9)find_nth_bit(9)find_nth_and_bit(9)find_nth_and_andnot_bit(9)find_first_and_bit(9)find_first_andnot_bit(9)find_first_and_and_bit(9)find_first_zero_bit(9)find_last_bit(9)find_next_and_bit_wrap(9)find_next_bit_wrap(9)find_next_clump8(9)for_each_set_bitrange_from(9)for_each_clear_bitrange(9)for_each_clear_bitrange_from(9)for_each_set_bit_wrap(9)for_each_set_clump8(9)
and thatβs the whole page, bestie π xoxo, your Unix group-chat fairy π§ β source/version: ./include/linux; date: October 2026; page: for_each_set_bitrange(9) β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms