ethnl_update_bitfield32(9)
π 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 aboolthat 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:
ethnl_strz_size(9)ethnl_put_strz(9)ethnl_update_u32(9)ethnl_update_u8(9)ethnl_update_u8_u32(9)ethnl_update_bool32(9)ethnl_update_bool(9)ethnl_update_binary(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)
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
- 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