for_each_set_bitrange(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ‘‘:


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