ksz_get_wol(9)
π 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β thedsa_switchstructure. your main character struct, the switch itself πportβ the port number. which port are we talking about, be specific πwolβ pointer to theethtoolWake-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:
ksz_phylink_mac_disable_tx_lpi(9)ksz_phylink_mac_enable_tx_lpi(9)ksz_update_port_member(9)ksz_parent_mdio_read(9)ksz_parent_mdio_write(9)ksz_phy_addr_to_port(9)ksz_irq_phy_setup(9)ksz_irq_phy_free(9)ksz_parse_dt_phy_config(9)ksz_mdio_register(9)ksz_handle_wake_reason(9)ksz_is_port_mac_global_usable(9)ksz_set_wol(9)ksz_wol_pre_shutdown(9)ksz_switch_macaddr_get(9)ksz_switch_shutdown(9)ksz_drive_strength_to_reg(9)ksz_drive_strength_error(9)ksz_drive_strength_write(9)
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
- 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