---
name: "phy_find_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_find_valid"
---

# phy\_find\_valid(9)

find a PHY setting that matches the requested features mask

## NAME

phy\_find\_valid - find a PHY setting that matches the requested features mask

## SYNOPSIS

**unsigned int phy\_find\_valid(unsigned int** *idx***, u32** *features***);**

## ARGUMENTS

*idx*

The first index in settings\[\] to search

*features*

A mask of the valid settings

## DESCRIPTION

Returns the index of the first valid setting less than or equal to the one pointed to by idx, as determined by the mask in features. Returns the index of the last setting if nothing else matches.

## COPYRIGHT
