DECLARE BITMAP(9)
β¨ declare bitmap(9) β¨
okay so bestie, this page is from the Kernel API Manual, section 9, and it is literally a one-macro moment. No cap: the whole page is the iconic declaration plus a SEE ALSO friend group π«Ά.
πΈ NAME πΈ
declare bitmap β the DECLARE_BITMAP(name,bits) macro, living its best life in linux/types.h π
.
π«Ά DESCRIPTION π«Ά
The DECLARE_BITMAP(name,bits) macro, in linux/types.h, can be used to declare an array named name of just enough unsigned long entries to contain all bit positions from 0 to bits - 1. That's the whole thing, and it's giving "exactly enough storage, no extra crumbs" β¨.
π¦ SEE ALSO π¦
the whole see-also squad, in order:
- Kernel file
./include/linux/bitmap.h bitmap overview(9)bitmap bitops(9)bitmap_find_next_zero_area(9)bitmap_or_equal(9)bitmap_weight_from(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)
okay bye bestie β sourced from ./include/linux, dated October 2026, and filed under declare bitmap(9) in the Kernel API Manual π«Άβ¨
π¦ 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