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

NAME

6       devm_mdiobus_alloc_size - Resource-managed mdiobus_alloc_size
7

SYNOPSIS

9       struct mii_bus * devm_mdiobus_alloc_size(struct device * dev,
10                                                int sizeof_priv);
11

ARGUMENTS

13       dev
14           Device to allocate mii_bus for
15
16       sizeof_priv
17           Space to allocate for private structure.
18

DESCRIPTION

20       Managed mdiobus_alloc_size. mii_bus allocated with this function is
21       automatically freed on driver detach.
22
23       If an mii_bus allocated with this function needs to be freed
24       separately, devm_mdiobus_free must be used.
25

RETURNS

27       Pointer to allocated mii_bus on success, NULL on failure.
28
30Kernel Hackers Manual 3.10         June 2019           DEVM_MDIOBUS_ALLOC_S(9)
Impressum