find_next_bit(9)
π find_next_bit(9)
okay bestie, so this is a page straight out of the Kernel API Manual β the find_next_bit one β and it's genuinely one of those little helpers that eats. let's get into it π«Ά
β¨ NAME β¨
find_next_bit β find the next set bit in a memory region
π SYNOPSIS π
unsigned long find_next_bit (const unsigned long *addr , unsigned long
size , unsigned long offset );
like yeah, that's the whole vibe check right there π
πΈ ARGUMENTS πΈ
addrβ the address you're basing the search on. that's your starting point, your home base, your main character location πsizeβ the bitmap size in bits. so, how big the whole thing is. don't go past it βoffsetβ the bitnumber to start searching at. not from the top, from here π
π DESCRIPTION π
so what does it actually do?? it returns the bit number for the next set bit. that's it. that's the whole job. iconic, lowkey.
and if no bits are set?? it just returns size. no drama, no error, just size. that's the fallback and it's giving very "well, nothing here bestie" π
π¦ SEE ALSO π¦
- the kernel file
./tools/include/linux/find.h find_next_and_bit(9)find_next_zero_bit(9)find_first_bit(9)find_first_and_bit(9)find_first_zero_bit(9)
all of these are fr fr part of the same little friend group, go say hi π
and that's the page, bestie!! no cap, that's genuinely all of it π
this one's from ./tools/include/linux, dated October 2026, and it's the find_next_bit(9) page β so yeah, go find your next set bit, you absolute legend πβ¨π
π¦ 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