---
name: "phy_check_valid"
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_check_valid"
---

# phy\_check\_valid(9)

check if there is a valid PHY setting which matches speed, duplex, and feature mask

## NAME

phy\_check\_valid - check if there is a valid PHY setting which matches speed, duplex, and feature mask

## SYNOPSIS

**bool phy\_check\_valid(int** *speed***, int** *duplex***, u32** *features***);**

## ARGUMENTS

*speed*

speed to match

*duplex*

duplex to match

*features*

A mask of the valid settings

## DESCRIPTION

Returns true if there is a valid setting, false otherwise.

## COPYRIGHT
