phy_can_wakeup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… phy_can_wakeup(9) β€” like, the wakeup-capability vibe check for your PHY 🫢

okay so this is a page from the Kernel API Manual, bestie, and it's about one single tiny function that answers one single tiny question: can this PHY wake stuff up? that's it. that's the whole gig. ✨


✨ NAME ✨

phy_can_wakeup β€” tells you whether the PHY has driver-model wakeup capabilities πŸ’€


🌸 SYNOPSIS 🌸

bool phy_can_wakeup (struct phy_device *phydev );

like, you hand it a phydev and it hands you back a bool. transactional. iconic. πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • phydev β€” the struct phy_device, aka the little guy you're asking about. that's the whole argument list, no hidden extras, no cap πŸ’…

⭐ RETURN ⭐

it gives you true/false depending on the PHY driver's device_set_wakeup_capable setting. so the answer literally comes straight from whatever the driver set. you're not getting an opinion, you're getting the driver's receipts πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr β€” and yes, the kernel file is . / include/linux/phy.h:

  • enum phy_interface_t(9)
  • phy_modes(9)
  • rgmii_clock(9)
  • struct mdio_bus_stats(9)
  • struct mii_bus(9)
  • mdiobus_alloc(9)
  • enum phy_state(9)
  • struct phy_c45_device_ids(9)
  • struct phy_oatc14_sqi_capability(9)
  • struct phy_device(9)
  • struct phy_tdr_config(9)
  • enum link_inband_signalling(9)
  • struct phy_plca_cfg(9)
  • struct phy_plca_status(9)
  • struct phy_led(9)
  • struct phy_mse_capability(9)
  • struct phy_mse_snapshot(9)
  • struct phy_driver(9)
  • phy_id_compare(9)
  • phy_id_compare_vendor(9)
  • phy_id_compare_model(9)
  • phydev_id_compare(9)
  • phy_is_started(9)
  • phy_driver_is_genphy(9)
  • phy_disable_eee_mode(9)
  • phy_may_wakeup(9)
  • phy_read(9)
  • __phy_read(9)
  • phy_write(9)
  • __phy_write(9)
  • __phy_modify_changed(9)
  • phy_read_mmd_poll_timeout(9)
  • __phy_set_bits(9)
  • __phy_clear_bits(9)
  • phy_set_bits(9)
  • phy_clear_bits(9)
  • __phy_set_bits_mmd(9)
  • __phy_clear_bits_mmd(9)
  • phy_set_bits_mmd(9)
  • phy_clear_bits_mmd(9)
  • phy_interrupt_is_valid(9)
  • phy_polling_mode(9)
  • phy_has_hwtstamp(9)
  • phy_has_rxtstamp(9)
  • phy_has_tsinfo(9)
  • phy_has_txtstamp(9)
  • phy_is_default_hwtstamp(9)
  • phy_on_sfp(9)
  • phy_interface_mode_is_rgmii(9)
  • phy_interface_mode_is_8023z(9)
  • phy_interface_is_rgmii(9)
  • phy_is_pseudo_fixed_link(9)
  • phy_module_driver(9)

and the header lives in the kernel file ./include/linux/phy.h β€” go say hi πŸ’–


mwah πŸ’‹ that's the page! it's from ./include/linux, dated October 2026, and yes the manual name is phy_can_wakeup(9) in case you forgot already πŸ™ˆ go forth and wake things up responsibly, bestie πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from