ethnl_reply_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the ETHTOOL_MSG_* message type for the reply ⭐
  • hdr_attrtype β€” the attribute type for the common header
  • info β€” the genetlink info of the received packet we're responding to πŸ“₯
  • ehdrp β€” the place to store the payload pointer that genlmsg_new returned, 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 🌈


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