fns(9)
β¨ NAME β¨
okay so bestie, welcome to fns(9) from the Kernel API Manual β this page is literally about finding the N'th set bit in a word, and it's giving tiny-but-iconic. π
fns- find N'th set bit in a word β¨
πΈ SYNOPSIS πΈ
here's the whole signature vibe, no cap:
unsigned int fns (unsigned long word , unsigned int n );
π ARGUMENTS π
wordβ the word to search π«Ά like, the word we're digging through, bestie.nβ bit to find π the specific bit we're on the hunt for.
π¦ SEE ALSO π¦
go say hi to the whole crew, they're all iconic in their own way:
- Kernel file:
./include/linux/bitops.h rol64(9),ror64(9),rol32(9),ror32(9),rol16(9),ror16(9),rol8(9),ror8(9),sign_extend32(9),sign_extend64(9),get_count_order_long(9),parity8(9),__ffs64(9),assign_bit(9),__ptr_set_bit(9),__ptr_clear_bit(9),__ptr_test_bit(9)
π source: ./include/linux Β· date: October 2026 Β· page: fns(9) β that's a wrap, bestie, 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