ksz_set_wol(9)
π ksz_set_wol(9) π
okay so bestie, we're in the kernel API manual and this page is literally called ksz_set_wol(9) β it's giving "Wake-on-LAN but make it DSA". let's get into it π«Ά
β¨ NAME β¨
ksz_set_wol β Set Wake-on-LAN settings for a specified port. that's it, that's the whole vibe. π₯
π SYNOPSIS π
int ksz_set_wol (struct dsa_switch *ds , int port , struct
ethtool_wolinfo *wol );
π ARGUMENTS π
dsβ Thedsa_switchstructure. your main character struct, ngl πportβ The port number. which port are we waking up bestiewolβ Pointer toethtoolWake-on-LAN settings structure. this is where the WoL tea lives β
π¦ DESCRIPTION π¦
okay so this function configures Wake-on-LAN (WoL) settings for a specified port. it's literally doing a whole routine, watch:
- it validates the provided WoL options β
- it checks if PME is enabled and supported π
- it clears any previous wake reasons π§Ή (out with the old)
- it sets the Magic Packet flag in the port's PME control register β but only if specified β¨
no cap, it's a little pipeline of self-care for your NIC π§
π RETURN π
0on success π- or other error codes on failure π (things happen)
β SEE ALSO β
Kernel file ./drivers/net/dsa/microchip/ksz_common.c β that's the source house, go visit π
and the whole friend group, in order:
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_get_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)
π‘ reminder bestie: every one of these is in the same directory and listed on the page β don't skip any, they're all invited to the function party π
πΈ that's the whole page! written up in ./drivers/net/dsa/microchip, dated October 2026, and the manual name on the tin is ksz_set_wol(9). periodt. go wake something up responsibly, 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