---
name: "phy_mii_ioctl"
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/phy_mii_ioctl"
---

# phy\_mii\_ioctl(9)

generic PHY MII ioctl interface

## NAME

phy\_mii\_ioctl - generic PHY MII ioctl interface

## SYNOPSIS

**int phy\_mii\_ioctl(struct phy\_device \*** *phydev***, struct ifreq \*** *ifr***, int** *cmd***);**

## ARGUMENTS

*phydev*

the phy\_device struct

*ifr*

struct ifreq for socket ioctl's

*cmd*

ioctl cmd to execute

## DESCRIPTION

Note that this function is currently incompatible with the PHYCONTROL layer. It changes registers without regard to current state. Use at own risk.

## COPYRIGHT
