bitmap_and(9)
π bitmap_and(9) β Kernel API Manual π
okay so bestie, welcome to bitmap_and(9), a page straight out of the Kernel API Manual and honestly? it's giving "tiny function, huge main character energy" β¨
β¨ NAME β¨
bitmap_and β Do logical and on bitmaps π«Ά
like, that's it, that's the whole vibe. two bitmaps walk in, one bitmap walks out, and the operation between them is a logical and. iconic behavior, no notes. π
πΈ SYNOPSIS πΈ
bool bitmap_and (unsigned long *dst , const unsigned long *src1 , const unsigned long *src2 , unsigned int nbits );
not me presenting the signature in all its glory π keep every space and comma exactly like that, she's fragile.
π ARGUMENTS π
dstβ the resulting bitmap π this is where the answer goes, she's the output girlie, the destination, the final look.src1β operand 1 πΈ first input bitmap, one half of the couple.src2β operand 2 π¦ second input bitmap, the other half. yes they're being and-ed together, it's a whole love story.nbitsβ size of bitmap β literally how many bits we're dealing with. the whole scope of the operation, the vibe check in bit form.
ngl bestie, nbits is doing a lot of heavy lifting here β it's the size, so don't go feral and pass something mismatched. π
π₯ SEE ALSO π₯
- Kernel file
./tools/include/linux/bitmap.hπ β go read her, she's the source of truth for all your bitmap needs. bitmap_zalloc(9)π§ β the allocator sibling, zeroed and ready to slay.
and that's the whole page, bestie! π tiny, sweet, does exactly one (1) job and does it flawlessly. periodt. π
this page is brought to you by the ./tools/include/linux directory, dated October 2026, and filed under bitmap_and(9) β mwah, take care of her π
π¦ 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