find_last_bit(9)
π find_last_bit(9) β kernel API manual, bestie edition π
okay so this is a page from the Kernel API Manual, and it's about find_last_bit, which is honestly such a vibe. let's get into it β¨
πΈ NAME πΈ
find_last_bit β find the last set bit in a memory region π
π¦ SYNOPSIS π¦
unsigned long find_last_bit (const unsigned long *addr , unsigned long size );
π ARGUMENTS π
addrβ the address to start the search at π like, this is where you're looking, bestiesizeβ the number of bits to search π’ that's your search radius, no cap
β¨ DESCRIPTION β¨
Returns the bit number of the last set bit, or size. periodt π
that's it, that's the whole thing. it gives exactly what it says on the tin β no plot twists, no hidden lore. π«Ά
π SEE ALSO π
okay so this is the friend group, the whole squad, the Kernel file ./include/linux/find.h crew β literally all of them live in ./include/linux/find.h, iykyk:
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_next_and_bit_wrap(9)find_next_bit_wrap(9)find_next_clump8(9)for_each_set_bitrange(9)for_each_set_bitrange_from(9)for_each_clear_bitrange(9)for_each_clear_bitrange_from(9)for_each_set_bit_wrap(9)for_each_set_clump8(9)
like, twenty-two whole icons. main character energy from every single one of them ππ₯
π§ sign-off π§
this little masterpiece lives in ./include/linux, and it's dated October 2026 β yes, from the future, slay π bye bestie, go find those bits π¦β¨
π¦ 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