ksz_get_wol(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ksz_get_wol(9) β€” the Kernel API Manual page, but make it make sense ✨

okay so this is ksz_get_wol from the Kernel API Manual, and bestie, it's literally the little function that goes "hey, is Wake-on-LAN even a thing on this port?" πŸ¦‹


🌸 NAME 🌸

ksz_get_wol β€” literally just get the Wake-on-LAN settings for a specified port. That's it, that's the whole assignment πŸ’…


✨ SYNOPSIS ✨

void ksz_get_wol (struct dsa_switch *ds , int port , struct ethtool_wolinfo *wol );

no cap, that's the whole signature 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • ds β€” the dsa_switch structure. your main character struct, the switch itself πŸ‘‘
  • port β€” the port number. which port are we talking about, be specific πŸ“
  • wol β€” pointer to the ethtool Wake-on-LAN settings structure. this is where the answers land, so hand it over nicely πŸ’Œ

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the vibe: this function checks the device PME wakeup_source flag and the chip_id. that's the vibe check πŸ”

if it's enabled and supported, it sets the supported and active WoL flags. and if it's not? it just doesn't, and that's also valid πŸ™ˆ


🌈 SEE ALSO 🌈

the kernel file, first of all:

  • ./drivers/net/dsa/microchip/ksz_common.c

and then the whole friend group, no one left out, periodt:


ngl if you're reading this at 3am debugging WoL on a Microchip DSA switch, you're doing amazing, and this page is lowkey cheering for you πŸ”₯

πŸ’– that's the whole page, mwah πŸ’– this absolute icon of a manpage comes to you from ./drivers/net/dsa/microchip and it's dated October 2026 β€” so yeah, it's giving future energy, ate, slay, bye bestie πŸ§šπŸ’…

πŸ“¦ where this page comes from