ethnl_update_bool32(9)
π 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, ornullif there isnβt one. πmodβ pointer to aboolthatβ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
- 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