ksz_wol_pre_shutdown(9)
π ksz_wol_pre_shutdown(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little function with a big job, and honestly? she ate. let's get into it π«Ά
πΈ NAME πΈ
ksz_wol_pre_shutdown β she gets the switch device all cozy and ready for shutdown, while being a total overachiever and also taking Wake-on-LAN (WoL) settings into account π
β¨ SYNOPSIS β¨
void ksz_wol_pre_shutdown (struct ksz_device *dev );
like, that's the whole vibe. no return value, no drama, just vibes and a pointer π
π ARGUMENTS π
devβ the switch device structure. yeah, that's the one. the main character of this whole operation π
π¦ DESCRIPTION π¦
so here's the tea β β this function preps the switch device for a safe shutdown, and while she's doing that she's also keeping an eye on the Wake-on-LAN (WoL) settings on the user ports. like, simultaneously. multitasking icon behavior, no cap π₯
it's giving "responsible older sister who remembers to turn off the stove and check that the wifi is still on so you can wake the machine back up later" ππ
π SEE ALSO π
- Kernel file
./drivers/net/dsa/microchip/ksz_common.c 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_set_wol(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)
like, that's a whole friend group right there and every single one of them is invited to the function party π iykyk π§
and that's the page, bestie!! πΈ this absolute baddie lives in ./drivers/net/dsa/microchip and she's dated October 2026 β so mark your calendar, write it down, and go read the source fr fr πβ¨π
π¦ 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