for_each_set_clump8(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ for_each_set_clump8(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’– this one's a macro and it's honestly so iconic β€” it walks your bitmap in 8-bit clumps and only stops at the clumps that have set bits in them. no cap, it's giving "selective scrolling" energy πŸ‘‘


🌸 NAME 🌸

for_each_set_clump8 β€” iterate over bitmap for each 8-bit clump with set bits πŸŽ€

like, literally: for every 8-bit clump that has any set bits, you get a turn. the ones that are all zeroes? they don't get an invite to the group chat πŸ™ˆ


πŸ¦‹ SYNOPSIS πŸ¦‹

for_each_set_clump8 (start , clump , bits , size );

πŸ’… ARGUMENTS πŸ’…

  • start β€” bit offset to start the search from, and also where the current iteration offset gets stored πŸ”₯ so it's both the starting point and the lil bookmark that moves along as you go. main character of the argument list ngl.
  • clump β€” the location where a copy of the current 8-bit clump gets stored πŸ“ that's where you peek at what you found.
  • bits β€” the bitmap address you're basing the search on 🌈 your actual data, your vibe.
  • size β€” the bitmap size, measured in number of bits ✨ not bytes, not clumps, bits. don't get it twisted fr fr.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/find.h is where the fam lives 🫢 and here's the whole squad, no one left behind:


ok that's the whole page bestie, every flag and every reference accounted for, nothing skipped, we ate and left no crumbs πŸ’€βœ¨

and that's a wrap on this little kernel journey 🧚 coming to you from the source tree at ./include/linux, dated October 2026, in the for_each_set_clump8(9) era ⭐ mwah πŸ’œ

πŸ“¦ where this page comes from