---
name: "dev_get_by_flags_rcu"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/dev_get_by_flags_rcu"
---

# dev\_get\_by\_flags\_rcu(9)

find any device with given flags

## NAME

dev\_get\_by\_flags\_rcu - find any device with given flags

## SYNOPSIS

**struct net\_device \* dev\_get\_by\_flags\_rcu(struct net \*** *net***, unsigned short** *if\_flags***, unsigned short** *mask***);**

## ARGUMENTS

*net*

the applicable net namespace

*if\_flags*

IFF\_\* values

*mask*

bitmask of bits in if\_flags to check

## DESCRIPTION

Search for any interface with the given flags. Returns NULL if a device is not found or a pointer to the device. Must be called inside **rcu\_read\_lock**, and result refcount is unchanged.

## COPYRIGHT
