generic_test_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… generic_test_bit(9) πŸ’…

okay so welcome to the Kernel API Manual, bestie β€” today’s main character is generic_test_bit(9), and no cap she’s here to tell you whether a bit is set. πŸ’…βœ¨


πŸŽ€ NAME πŸŽ€

generic_test_bit β€” determine whether a bit is set. periodt. that’s the whole vibe. πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

bool generic_test_bit (unsigned long nr , const volatile unsigned long
       *addr );

🌸 ARGUMENTS 🌸

  • nr β€” bit number to test πŸ‘€
  • addr β€” address to start counting from πŸ“

πŸ’œ SEE ALSO πŸ’œ


and that’s the whole page, bestie 🫢 this little icon lives in ./include/asm-generic/bitops, dated October 2026, and the page is generic_test_bit(9). bye πŸ’–

πŸ“¦ where this page comes from