radix_tree_find_next_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 radix_tree_find_next_bit(9) β€” Kernel API Manual, but make it cute 🌸

okay so bestie, this is the Kernel API Manual page for radix_tree_find_next_bit(9). It’s giving tiny utility function with main character energy, and honestly? Obsessed. πŸ’…


✨ NAME ✨

radix_tree_find_next_bit β€” find the next set bit in a memory region. Periodt. πŸ’–

πŸŽ€ SYNOPSIS πŸŽ€

unsigned long radix_tree_find_next_bit (struct radix_tree_node *node ,
       unsigned int tag , unsigned long offset );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • node β€” where to begin the search. (struct radix_tree_node *node)
  • tag β€” the tag index. (unsigned int tag)
  • offset β€” the bitnumber to start searching at. (unsigned long offset)

πŸ’œ DESCRIPTION πŸ’œ

Okay so here’s the vibe: this is the unrollable variant of find_next_bit for constant size arrays. Slay. ✨

bestie, important: tail bits starting from size to roundup(size, BITS_PER_LONG) must be zero. That’s a hard requirement, not a suggestion. no cap. 🚨

It returns the next bit offset, or size if nothing found. That’s it. Iconic. 🌟

πŸ”₯ SEE ALSO πŸ”₯

The manual points at Kernel file ./lib/radix-tree.c, plus all these besties:


mwah πŸ’‹ β€” sign-off time: this page’s source/version is ./lib, the date is October 2026, and the manual is radix_tree_find_next_bit(9). byeee 🫢

πŸ“¦ where this page comes from