STRUCT ETHNL_PERPHY_DUMP_CTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ethnl_perphy_dump_ctx(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual, and buckle up because we're about to talk about a struct that is genuinely so niche and so specific and honestly kind of iconic for it πŸŽ€


✨ NAME ✨

struct ethnl_perphy_dump_ctx β€” the context for dumpit() PHY-aware callbacks. that's literally it. that's the whole vibe. lowkey a little guy that carries exactly what a PHY-aware dump callback needs to know πŸ¦‹


🌸 SYNOPSIS 🌸

struct ethnl_perphy_dump_ctx {
    struct ethnl_dump_ctx   ethnl_ctx;
    unsigned int            ifindex;
    unsigned long           pos_phyindex;
};

like, look at her. three fields. no cap, she's compact and she knows it ✨


πŸ‘‘ Members πŸ‘‘

okay so the struct has exactly three members and we're gonna go through each one because every single one of them matters, periodt:

  • ethnl_ctx β€” the generic ethnl context 🫢 not a special one, not a themed one, just the plain generic one. she's the base layer.
  • ifindex β€” for Filtered DUMP requests, this is the ifindex of the targeted netdev πŸ’– so like, if you're filtering, this is which netdev you're pointing at. iykyk.
  • pos_phyindex β€” the iterator position for multi-msg DUMP πŸ”₯ this is the little counter that keeps track of where you are when a dump gets split across multiple messages. main character energy for real.

πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, bestie, they're all in ./net/ethtool and they're all part of the same little friend group:

ngl the naming convention here is giving "we ran out of ideas and just kept prefixing things with ethnl" and honestly? respect. 😭

and that's the whole page, bestie!! this little number lives over in ./net/ethtool and was dated October 2026 β€” so yeah, technically from the future, we love a time-traveling manpage πŸ’€βœ¨ mwah, go read the SEE ALSOs, ily πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from