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

# rio\_is\_switch(9)

Tests if a RIO device has switch capabilities

## NAME

rio\_is\_switch - Tests if a RIO device has switch capabilities

## SYNOPSIS

**int rio\_is\_switch(struct rio\_dev \*** *rdev***);**

## ARGUMENTS

*rdev*

RIO device

## DESCRIPTION

Gets the RIO device Processing Element Features register contents and tests for switch capabilities. Returns 1 if the device is a switch or 0 if it is not a switch. The RIO device struct is freed.

## AUTHOR

**Matt Porter** \<mporter@kernel.crashing.org\>, \<mporter@mvista.com\>

Author.

## COPYRIGHT
