ethnl_update_bool32(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ethnl_update_bool32(9) πŸ’…

okay so this little icon is straight out of the Kernel API Manual, and it’s here to explain how to update a u32 that’s being used like a bool from an NLA_U8 attribute. no cap, that’s the whole gig. 🫢


🌸 NAME 🌸

ethnl_update_bool32 β€” update u32 used as bool from NLA_U8 attribute. ✨


✨ SYNOPSIS ✨

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

πŸŽ€ ARGUMENTS πŸŽ€

  • dst β€” the value you’re updating, bestie. πŸ’–
  • attr β€” the netlink attribute with the new value, or null if there isn’t one. πŸ™ˆ
  • mod β€” pointer to a bool that’s there for modification tracking. πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

Okay so here’s the tea: take the u8 value from the NLA_U8 netlink attribute attr, and use it to set the u32 variable pointed to by dst to 0 (if zero) or 1 (if not). If attr is null, literally do nothing β€” no cap. πŸ›‘

The bool pointed to by mod gets set to true if this function changed the logical value of *dst; otherwise it is left as is. that’s it, that’s the whole vibe. πŸ’…


πŸ¦‹ SEE ALSO πŸ¦‹

bestie, go peek at the kernel file ./net/ethtool/netlink.h and then the whole squad: ethnl_strz_size(9), ethnl_put_strz(9), ethnl_update_u32(9), ethnl_update_u8(9), ethnl_update_u8_u32(9), ethnl_update_bool(9), ethnl_update_binary(9), ethnl_update_bitfield32(9), ethnl_reply_header_size(9), struct ethnl_req_info(9), ethnl_req_get_phydev(9), struct ethnl_reply_data(9), struct ethnl_request_ops(9). iykyk πŸ‘‘βœ¨


mwah πŸ’‹ β€” source/version: ./net/ethtool; date: October 2026. stay slay, bestie πŸ’…πŸ’–

πŸ“¦ where this page comes from