ethnl_update_bitfield32(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ethnl_update_bitfield32 β€” a lil' kernel API manual moment ✨

okay so bestie, welcome to the Kernel API Manual entry for ethnl_update_bitfield32(9) β€” yes that's the whole name, she's long but she's iconic πŸŽ€


✨ NAME ✨

ethnl_update_bitfield32 β€” update a u32 value from an NLA_BITFIELD32 attribute πŸ¦‹


🌸 SYNOPSIS 🌸

void ethnl_update_bitfield32 (u32 *dst , const struct nlattr *attr ,
bool *mod );

πŸ’– ARGUMENTS πŸ’–

  • dst β€” the value you're updating, bestie. that's the one getting a glow-up πŸ’…
  • attr β€” the netlink attribute holding the new value, or null if there's nothing to see here πŸ™ˆ
  • mod β€” a pointer to a bool that keeps track of whether anything actually got modified πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

So here's the vibe: she updates the bits in the u32 value that are set in the attribute's mask β€” swapping them over to the values from the attribute's value ✨

But fr fr, if attr is null, or the value wouldn't change at all? She does nothing. literally nothing. not a single thing. πŸ’€

Otherwise β€” and only otherwise β€” she sets the bool pointed to by mod to true, so everyone knows a modification happened 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./net/ethtool/netlink.h, plus the whole friend group:


ngl this one's short but she ate. no cap. 🌈

okay that's the whole page bestie, ily, go update some bitfields πŸ’œ

β€” source version <pink>./net/ethtool</pink>, dated October 2026, signed off with a kiss πŸŽ€β­πŸ“

πŸ“¦ where this page comes from