bitmap_from_u64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, meet bitmap_from_u64 β€” it's a Kernel API Manual page (yes, bitmap_from_u64(9), that's her full name πŸ’…) and her whole job is literally check and swap words within u64. that's it. that's the vibe. πŸ¦‹


✨ SYNOPSIS ✨

void bitmap_from_u64 (unsigned long *dst , u64 mask );

like, she takes two things and returns nothing. void queen energy, no cap. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • dst β€” the destination bitmap 🎯 (where the good stuff lands)
  • mask β€” the source bitmap 🌸 (where the good stuff comes from)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• and it's honestly such a specific little gremlin of a problem:

in a 32-bit Big Endian kernel, when you use (u32 *)(val)[*] to read a u64 mask, you get the wrong word. like, not me getting the wrong word 😭

that means (u32 *)(val)[0] grabs the upper 32 bits β€” but we expect the lower 32-bits of the u64. so, yeah, endianness said "not today bestie" and now this whole function exists to fix it. highkey iconic of her ngl. πŸ”₯


🌈 SEE ALSO 🌈

bestie, the whole friend group shows up here, so let's do a headcount 🫢:

like literally the entire bitmap cinematic universe. go read them all, iykyk πŸ’œ


fr fr, that's the whole page. she's short, she's specific, she's a little endian-coded icon. 🧚

and that's a wrap, bestie β€” this one came straight out of ./include/linux, dated October 2026, so you know it's fresh πŸŒΈβœ¨πŸ’–

πŸ“¦ where this page comes from