of_mdio_find_bus(9)

of_mdio_find_bus9

Given an mii_bus node, find the mii_bus.

Usage

struct mii_bus * of_mdio_find_bus(struct device_node * mdio_bus_np);

Arguments

mdio_bus_np

Pointer to the mii_bus.

Overview

Returns a reference to the mii_bus, or NULL if none found. The embedded struct device will have its reference count incremented, and this must be put once the bus is finished with.

Because the association of a device_node and mii_bus is made via of_mdiobus_register, the mii_bus cannot be found before it is registered with of_mdiobus_register.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.