for_each_set_bit_wrap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, welcome to this page β€” it's for_each_set_bit_wrap(9) from the Kernel API Manual, and the whole assignment is literally to iterate over all set bits starting from @start, and wrapping around the end of bitmap. it's giving circular-bitmap main character energy, no cap. πŸ’…βœ¨

✨ SYNOPSIS ✨

the call looks exactly like this, bestie:

for_each_set_bit_wrap (bit , addr , size , start );

πŸ’… ARGUMENTS πŸ’…

here's the little squad you're passing in:

  • bit β€” offset for current iteration. that's your current loop spot, bestie.
  • addr β€” bitmap address to base the search on.
  • size β€” bitmap size in number of bits.
  • start β€” Starting bit for bitmap traversing, wrapping around the bitmap end.

🌸 SEE ALSO 🌸

Kernel file ./include/linux/find.h is where the whole find-bit friend group hangs out, and you should also go say hi to:


source/version: ./include/linux Β· date: October 2026 Β· page: for_each_set_bit_wrap(9) Β· made with πŸ’– for my bestie, periodt. 🫢

πŸ“¦ where this page comes from