STRUCT ETHNL_DUMP_CTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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