bitmap_and(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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