bitmap_weight_from(9)
π 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 weightingendβ 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:
bitmap overview(9)bitmap bitops(9)declare bitmap(9)bitmap_find_next_zero_area(9)bitmap_or_equal(9)bitmap_scatter(9)bitmap_gather(9)bitmap_release_region(9)bitmap_allocate_region(9)bitmap_find_free_region(9)BITMAP_FROM_U64(9)bitmap_from_u64(9)bitmap_read(9)bitmap_write(9)
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
- 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