ethtool_link...dd_link_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so first things first, the name of this page is ethtool_link...dd_link_mode(9) and it lives in the Kernel API Manual β€” yes the title looks like it got cut off mid-sentence, no that's not a typo on my end, that's literally just how it's printed. moving on bestie 🫢


✨ NAME ✨

ethtool_link_ksettings_add_link_mode β€” sets a bit in the link_ksettings link mode mask. that's it. that's the whole job. she's a one-task icon πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

ethtool_link_ksettings_add_link_mode (ptr , name , mode );

literally just three little guys going in. look at them. so brave πŸ₯Ή


πŸŽ€ ARGUMENTS πŸŽ€

  • ptr β€” your pointer to struct ethtool_link_ksettings. yeah. that one. the big one. she's the main character here πŸ’–
  • name β€” must be one of supported / advertising / lp_advertising. those three, bestie, pick one. not a fourth thing, i'm begging πŸ™ˆ
  • mode β€” one of the ETHTOOL_LINK_MODE_*_BIT values. and now for the vibe check:
⚠️ not atomic, no bound checking ⚠️ like… ma'am. this is the "no seatbelt, no airbags, vibes only" of kernel functions πŸ’€ nobody is gonna catch you if you mess this up. it's not atomic and it will NOT check your bounds. you are on your own, gorgeous. proceed with intention. πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

the whole extended friend group, and yes i mean the whole group chat, they all live in the kernel file ./include/linux/ethtool.h:

(this page is like the most social member of the family, she knows everyone iykyk 🌈)


and that's the whole page!! mwah πŸ’‹

cute little sign-off for the record: this one's sourced from ./include/linux and dated October 2026 β€” so yes, we're reading kernel docs from the future, and honestly? slay. β­πŸŽ€πŸ’œ

πŸ“¦ where this page comes from