STRUCT ETHNL_REQ_INFO(9)
π struct ethnl_req_info(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this one's a struct page, and honestly? she's giving "quiet backstage queen of ethtool GET requests" energy π. Let's get into it.
π NAME π
struct ethnl_req_info β the base type for request information for GET requests. like, the blueprint blueprint. the foundational vibe. π¦
β¨ SYNOPSIS β¨
struct ethnl_req_info {
struct net_device *dev;
netdevice_tracker dev_tracker;
u32 flags;
u32 phy_index;
};
no cap, that's the whole struct. four little fields carrying the entire request-information situation π
πΈ Members πΈ
devβ the network device this request is for (and yes it may be null, so likeβ¦ check before you yeet it into a dereference, bestie π)dev_trackerβ the refcount tracker for thedevreference. she keeps the receipts so the refcounting stays iconic π§Ύβ¨flagsβ the request flags that are common to all request types. the universal language, fr fr π«Άphy_indexβ thephy_deviceindex connected todevthat this request is for. it can be0if the request doesn't target a phy at all, or if the dev's attached phy is the one being targeted π (yes, both cases, no cap)
π Description π
So here's the tea β: this is the common base for the request-specific structures that hold data from a parsed userspace request. Every one of those structures always embeds struct ethnl_req_info at zero offset β like, first thing in the struct, every single time. no exceptions, periodt π
π SEE ALSO π
Kernel file ./net/ethtool/netlink.h, plus this whole friend group right here: 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_update_bitfield32(9), ethnl_reply_header_size(9), ethnl_req_get_phydev(9), struct ethnl_reply_data(9), struct ethnl_request_ops(9) βπ₯
ok that's the whole page, you ate that ππ«Ά go forth and read your netlink headers with confidence, bestie.
this masterpiece lives in ./net/ethtool, stamped October 2026 β from the Kernel API Manual, with love ππ 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