ethnl_bitmap32_update(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ethnl_bitmap32_update β€” the Kernel API Manual, but make it a group chat

okay so bestie, you're looking at ethnl_bitmap32_update(9) from the Kernel API Manual and honestly? it's giving "tiny function, huge responsibility." it's a void, it returns nothing, but it changes things, and that's main character energy fr fr πŸ‘‘


✨ NAME ✨

ethnl_bitmap32_update β€” modify a u32 based bitmap according to a value/mask pair. no cap, that's literally its whole job πŸ’…


✨ SYNOPSIS ✨

void ethnl_bitmap32_update (u32 *dst , unsigned int nbits , const u32
*value , const u32 *mask , bool *mod );

five arguments, one void, zero regrets πŸ’–


✨ ARGUMENTS ✨

  • dst β€” the bitmap you're updating. this is the girl. everything happens to her 🌸
  • nbits β€” bit size of the bitmap. gotta know how many bits we're working with, obviously, it's giving "respect the boundaries" πŸŽ€
  • value β€” values to set. the actual vibes we're installing ✨
  • mask β€” mask of bits to set. this is the guest list β€” only the bits on it get in πŸ”₯
  • mod β€” set to true if the bitmap is modified, and preserve it if not. so if nothing changed, don't touch it, leave her alone, she's fine πŸ™ˆ

✨ DESCRIPTION ✨

okay so here's the tea β˜•: you set the bits in the dst bitmap that are set in mask to the values from value, and the rest stay untouched. like, literally untouched. not one bit. icon behaviour πŸ’…

and if the destination bitmap was modified, you set mod to true β€” but if it wasn't modified, you leave mod as it is. no flipping it to false, no "fixing" it, just leave it exactly where you found it 🫢

lowkey important: mod gets preserved when nothing changes, not reset. that's the whole vibe check of this parameter, so don't fumble it bestie 😭

✨ SEE ALSO ✨

the whole friend group πŸ’–:


and that's the page!! πŸ¦‹ this one lives in ./net/ethtool, dated October 2026, and its manual name is ethnl_bitmap32_update(9) β€” go forth and set some bits, you absolute legend πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from