for_each_set_bitrange_from(9)
πΈ NAME πΈ
for_each_set_bitrange_from β iterate over all set bit ranges [b; e).
okay so bestie, this is the Kernel API Manual page for for_each_set_bitrange_from(9), and it's literally here to help you walk those set bitranges. π
β¨
β¨ SYNOPSIS β¨
for_each_set_bitrange_from (b , e , addr , size );
π ARGUMENTS π
okay so here's the whole cast, and yes you need to know every one of them:
bβ bit offset of start of current bitrange (first set bit); must be initialized. do not skip the initialized part, bestie π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 π¦
Kernel file: ./include/linux/find.h π β and the whole related-functions group chat is:
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(9)for_each_clear_bitrange(9)for_each_clear_bitrange_from(9)for_each_set_bit_wrap(9)for_each_set_clump8(9)
mwah π β this cute little sign-off is brought to you by source/version ./include/linux, dated October 2026, all about for_each_set_bitrange_from(9). periodt π
β¨
π¦ 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