1PHY_ATTACH_DIRECT(9)        Network device support        PHY_ATTACH_DIRECT(9)
2
3
4

NAME

6       phy_attach_direct - attach a network device to a given PHY device
7       pointer
8

SYNOPSIS

10       int phy_attach_direct(struct net_device * dev,
11                             struct phy_device * phydev, u32 flags,
12                             phy_interface_t interface);
13

ARGUMENTS

15       dev
16           network device to attach
17
18       phydev
19           Pointer to phy_device to attach
20
21       flags
22           PHY device's dev_flags
23
24       interface
25           PHY device's interface
26

DESCRIPTION

28       Called by drivers to attach to a particular PHY device. The phy_device
29       is found, and properly hooked up to the phy_driver. If no driver is
30       attached, then a generic driver is used. The phy_device is given a ptr
31       to the attaching device, and given a callback for link status change.
32       The phy_device is returned to the attaching driver. This function takes
33       a reference on the phy device.
34
36Kernel Hackers Manual 3.10         June 2019              PHY_ATTACH_DIRECT(9)
Impressum