STRUCT ETHNL_PERPHY_DUMP_CTX(9)
π 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:
netlink.cethnl_parse_header_dev_get(9)ethnl_fill_reply_header(9)ethnl_reply_init(9)struct ethnl_dump_ctx(9)ethnl_default_parse(9)ethnl_init_reply_data(9)
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
- 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