generic_ffs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

generic_ffs(9) β€” Kernel API Manual vibes ✨

πŸ’– NAME πŸ’–

generic_ffs β€” find first bit set

okay so that's literally the whole mission, bestie: find first bit set. slay. πŸ’…

🌈 SYNOPSIS 🌈

int generic_ffs (int x );

πŸŽ€ ARGUMENTS πŸŽ€

  • x β€” the word to search

πŸ¦‹ DESCRIPTION πŸ¦‹

The definition matches the libc and compiler builtin ffs routines exactly, so bestie, it differs in spirit from ffz (man ffs). no cap, that's the lore. ✨

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./include/asm-generic/bitops/ffs.h

okay bye bestie 🫢 this page's source/version is ./include/asm-generic/bitops, and the date is October 2026. periodt. πŸ’–

πŸ“¦ where this page comes from