phy_connect_direct(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– phy_connect_direct(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” yes we're reading kernel docs together, this is our bonding era 🫢


✨ NAME ✨

phy_connect_direct β€” connect an ethernet device to a specific phy_device


🌸 SYNOPSIS 🌸

int phy_connect_direct (struct net_device *dev , struct phy_device
*phydev , void (*handler)(struct net_device *) , phy_interface_t
interface );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the network device you're connecting, like the main character of this whole operation πŸ‘‘
  • phydev β€” the pointer to the phy device, i.e. the one you've already got your eye on, no searching required
  • handler β€” callback function for state change notifications, so when stuff changes you get a little ping πŸ’…
  • interface β€” the PHY device's interface

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/net/phy/phy_device.c, plus literally the whole friend group:

phy_uses_state_machine(9), phy_register_fixup(9), genphy_match_phy_device(9), get_phy_c45_ids(9), get_phy_c22_id(9), get_phy_device(9), phy_device_register(9), phy_device_remove(9), phy_get_c45_ids(9), phy_find_next(9), phy_prepare_link(9), phy_connect(9), phy_disconnect(9), phy_poll_reset(9), phy_sfp_connect_phy(9), phy_sfp_disconnect_phy(9), phy_sfp_attach(9), phy_sfp_detach(9), phy_sfp_probe(9), phy_attach_direct(9), phy_detach(9), phy_reset_after_clk_enable(9), genphy_config_advert(9), genphy_c37_config_advert(9), genphy_setup_forced(9), genphy_restart_aneg(9), genphy_check_and_restart_aneg(9), __genphy_config_aneg(9), genphy_c37_config_aneg(9), genphy_aneg_done(9), genphy_update_link(9), genphy_read_status_fixed(9), genphy_read_status(9), genphy_c37_read_status(9), genphy_soft_reset(9), genphy_read_abilities(9), phy_remove_link_mode(9), phy_advertise_supported(9), phy_advertise_eee_all(9), phy_support_eee(9), phy_disable_eee(9), phy_support_sym_pause(9), phy_support_asym_pause(9), phy_set_sym_pause(9), phy_set_asym_pause(9), phy_validate_pause(9), phy_get_pause(9), phy_get_internal_delay(9), phy_get_tx_amplitude_gain(9), phy_get_mac_termination(9), phy_get_sfp_port(9), fwnode_mdio_find_device(9), fwnode_phy_find_device(9), fwnode_get_phy_node(9), phy_probe(9), phy_driver_register(9)

like, that's a lot of friends but every single one of them is invited πŸ’€


ngl bestie, if you're here it's because you already know which phy you want. if you're still shopping around, that's a whole different manpage (iykyk) πŸ™ˆ

shoutout to ./drivers/net/phy, dated October 2026, for hosting this whole glow-up β€” mwah, love you, mean it πŸ’œπŸ“

πŸ“¦ where this page comes from