ethnl_update_u8(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ethnl_update_u8 πŸ’…

okay bestie, welcome to ethnl_update_u8(9) from the Kernel API Manual β€” yes, we’re in kernel API land and it’s lowkey iconic ✨


✨ NAME ✨

ethnl_update_u8 β€” update u8 value from NLA_U8 attribute πŸ¦‹

🌸 SYNOPSIS 🌸

void ethnl_update_u8 (u8 *dst , const struct nlattr *attr , bool *mod );

that’s the whole signature, bestie β€” it’s void, so no return value to catch πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • dst β€” value to update πŸ’– this is the destination variable, bestie
  • attr β€” netlink attribute with new value or null πŸŽ€
  • mod β€” pointer to bool for modification tracking ✨

πŸ”₯ DESCRIPTION πŸ”₯

Okay so here’s the actual vibe: this function copies the u8 value from the NLA_U8 netlink attribute attr into the variable pointed to by dst 🫢 and if attr is null, it does absolutely nothing β€” no cap, just a polite little no-op πŸ™ˆ

The bool pointed to by mod is set to true if this function changed the value of *dst πŸ”₯ otherwise it is left as is β€” not flipped, not reset, just left exactly where it was πŸ’…

bestie note: attr being null is the β€œdo nothing” branch, and mod only flips to true when the value actually changes. Otherwise mod stays however it was. periodt ✨

🌈 SEE ALSO 🌈

Kernel file ./net/ethtool/netlink.h β€” go read, iykyk πŸ‘‘


xoxo, from ./net/ethtool πŸ’– dated October 2026 πŸŽ€ and yes, the page is ethnl_update_u8(9) β€” slay 🌟

πŸ“¦ where this page comes from