---
name: "mdiobus_read_nested"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/mdiobus_read_nested"
---

# mdiobus\_read\_nested(9)

Nested version of the mdiobus\_read function

## NAME

mdiobus\_read\_nested - Nested version of the mdiobus\_read function

## SYNOPSIS

**int mdiobus\_read\_nested(struct mii\_bus \*** *bus***, int** *addr***, u32** *regnum***);**

## ARGUMENTS

*bus*

the mii\_bus struct

*addr*

the phy address

*regnum*

register number to read

## DESCRIPTION

In case of nested MDIO bus access avoid lockdep false positives by using **mutex\_lock\_nested**.

## NOTE

MUST NOT be called from interrupt context, because the bus read/write functions may wait for an interrupt to conclude the operation.

## COPYRIGHT
