ethnl_update_u8(9)
π 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, bestieattrβ netlink attribute with new value or null πmodβ pointer toboolfor 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:attrbeing null is the βdo nothingβ branch, andmodonly flips totruewhen the value actually changes. Otherwisemodstays however it was. periodt β¨
π SEE ALSO π
Kernel file ./net/ethtool/netlink.h β go read, iykyk π
ethnl_strz_size(9)ethnl_put_strz(9)ethnl_update_u32(9)ethnl_update_u8_u32(9)ethnl_update_bool32(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)
xoxo, from ./net/ethtool π dated October 2026 π and yes, the page is ethnl_update_u8(9) β slay π
π¦ 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