ethnl_reply_init(9)
β¨ ethnl_reply_init(9) β¨
okay bestie, so this is a page straight out of the Kernel API Manual β we're talking ethnl_reply_init, and it's lowkey the moment a reply gets its whole life together π
πΈ NAME πΈ
ethnl_reply_init β create the skb for a reply and fill in the device identification π
π¦ SYNOPSIS π¦
struct sk_buff * ethnl_reply_init (size_t payload , struct net_device
*dev , u8 cmd , u16 hdr_attrtype , struct genl_info *info , void **ehdrp
);
π ARGUMENTS π
payloadβ the payload length, and no cap, this is without the netlink and genetlink header π«Άdevβ the device this reply is all about (it may be null, and that's fine, we don't judge π)cmdβ theETHTOOL_MSG_*message type for the reply βhdr_attrtypeβ the attribute type for the common headerinfoβ the genetlink info of the received packet we're responding to π₯ehdrpβ the place to store the payload pointer thatgenlmsg_newreturned, iconic little out-param behavior π
π₯ RETURN π₯
a pointer to the allocated skb on success, and NULL on error π (yes we hate to see it, but that's the vibe check)
π SEE ALSO π
- the Kernel file
./net/ethtool/netlink.cβ literally the source, go read it, iykyk π ethnl_parse_header_dev_get(9)ethnl_fill_reply_header(9)struct ethnl_dump_ctx(9)struct ethnl_perphy_dump_ctx(9)ethnl_default_parse(9)ethnl_init_reply_data(9)
and that's the whole page bestie, no notes π fr fr β this one lives in ./net/ethtool, dated October 2026, and that's the sign-off, mwah πππ§
π¦ 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