devm_mdiobus_alloc_size9
Resource-managed mdiobus_alloc_size
Usage
struct mii_bus * devm_mdiobus_alloc_size(struct device * dev, int sizeof_priv);
Arguments
dev
Device to allocate mii_bus for
sizeof_priv
Space to allocate for private structure.
Overview
Managed mdiobus_alloc_size. mii_bus allocated with this function is automatically freed on driver detach.
If an mii_bus allocated with this function needs to be freed separately, devm_mdiobus_free must be used.
Return
Pointer to allocated mii_bus on success, NULL on failure.
Releases
2 releases since Debian 8 (Jessie); the text changed 1 time.