1PHY_CONNECT(9) Network device support PHY_CONNECT(9)
2
3
4
6 phy_connect - connect an ethernet device to a PHY device
7
9 struct phy_device * phy_connect(struct net_device * dev,
10 const char * bus_id,
11 void (*handler) (struct net_device *),
12 phy_interface_t interface);
13
15 dev
16 the network device to connect
17
18 bus_id
19 the id string of the PHY device to connect
20
21 handler
22 callback function for state change notifications
23
24 interface
25 PHY device's interface
26
28 Convenience function for connecting ethernet devices to PHY devices.
29 The default behavior is for the PHY infrastructure to handle
30 everything, and only notify the connected driver when the link status
31 changes. If you don't want, or can't use the provided functionality,
32 you may choose to call only the subset of functions which provide the
33 desired functionality.
34
36Kernel Hackers Manual 3.10 June 2019 PHY_CONNECT(9)