bitmap_weight_from(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, this is bitmap_weight_from(9) from the Kernel API Manual β€” literally the Hamming weight for a memory region. iconic behavior honestly ✨


🌸 SYNOPSIS 🌸

unsigned long bitmap_weight_from (const unsigned long *bitmap , unsigned
       int start , unsigned int end );

πŸŽ€ ARGUMENTS πŸŽ€

  • bitmap β€” the base address 🫢
  • start β€” the bitnumber to starts weighting
  • end β€” the bitmap size in bits

πŸ¦‹ DESCRIPTION πŸ¦‹

Returns the number of set bits in the region. If start >= end, return >= end. no cap, that's the whole vibe check πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/bitmap.h plus the whole friend group:


mwah πŸ’‹ this lil page lives in ./include/linux and the calendar on it says October 2026 β€” catch you in bitmap_weight_from(9) land! πŸŽ€βœ¨

πŸ“¦ where this page comes from