generic___ffs(9)
π NAME π
okay bestie, meet generic___ffs from the Kernel API Manual β it's the little icon whose whole job is to find the first bit in a word. π
β¨
πΈ SYNOPSIS πΈ
unsigned int generic___ffs (unsigned long word );
π¦ ARGUMENTS π¦
wordβ the word to search, bestie. literally the thing you're searching through. ππ
π DESCRIPTION π
So likeβ¦ it finds the first bit in a word. that's the vibe. π«Ά
π¨ Undefined behavior alert: it's undefined if no bit exists, so your code should check against 0 first. no cap, do the check. ππ
π₯ SEE ALSO π₯
- Kernel file
./include/asm-generic/bitops/__ffs.hβ go read it, iykyk πβ¨
mwah π this iconic little page is from the Kernel API Manual, source/version ./include/asm-generic/bitops, dated October 2026, and you've been reading generic___ffs(9). periodt. ππ
π¦ 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