STRUCT ETHNL_DUMP_CTX(9)
π STRUCT ETHNL_DUMP_CTX(9) π
okay bestie, welcome to the Kernel API Manual β you're literally about to meet struct ethnl_dump_ctx, no big deal, just the moment our whole friendship levels up π«Ά
πΈ NAME πΈ
struct ethnl_dump_ctx β the context structure for the generic dumpit() callback. that's it, that's the vibe π
β¨ SYNOPSIS β¨
struct ethnl_dump_ctx {
const struct ethnl_request_ops *ops;
struct ethnl_req_info *req_info;
struct ethnl_reply_data *reply_data;
unsigned long pos_ifindex;
};
ngl, look at those four members. absolute main character energy. read on, queen π
π MEMBERS π
opsβ the request ops of the message type that's currently being processed. like, whose turn is it? this tells you πreq_infoβ the parsed request header of the request being processed. the receipts, essentially πreply_dataβ the data needed to compose the reply. everything you need to clap back, all in one place β¨pos_ifindexβ the saved iteration position βifindex. yes, the position is saved, we don't lose our place, that's just polite π
π¦ DESCRIPTION π¦
so these parameters are kept inside struct netlink_callback as context preserved between iterations. like, the struct remembers stuff so you don't have to π iconic behaviour fr fr.
they get initialized by ethnl_default_start, and then used in ethnl_default_dumpit and ethnl_default_done. that's the whole little lifecycle β start, dumpit, done. the way that this manpage just tells you the plot π
π₯ SEE ALSO π₯
the Kernel file ./net/ethtool/netlink.c β plus these absolute legends:
ethnl_parse_header_dev_get(9)ethnl_fill_reply_header(9)ethnl_reply_init(9)struct ethnl_perphy_dump_ctx(9)ethnl_default_parse(9)ethnl_init_reply_data(9)
iykyk, go read them, they're all slay πβ¨
and that's the page!! this little cutie lives in ./net/ethtool, and it was dated October 2026, periodt. go off and dump some contexts bestie, you've got this π
ππ
π¦ 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