ethnl_bitmap32_update(9)
π 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 totrueif 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 π:
- Kernel file
./net/ethtool/bitset.c ethnl_bitmap32_clear(9)ethnl_bitmap32_not_zero(9)ethnl_bitset32_size(9)ethnl_put_bitset32(9)ethnl_bitset_is_compact(9)ethnl_name_to_idx(9)ethnl_bitmap32_equal(9)ethnl_update_bitset32(9)ethnl_parse_bitset(9)
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
- 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