---
name: "rio_sport_is_active"
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_sport_is_active"
---

# rio\_sport\_is\_active(9)

Tests if a switch port has an active connection.

## NAME

rio\_sport\_is\_active - Tests if a switch port has an active connection.

## SYNOPSIS

**int rio\_sport\_is\_active(struct rio\_dev \*** *rdev***, int** *sp***);**

## ARGUMENTS

*rdev*

RapidIO device object

*sp*

Switch port number

## DESCRIPTION

Reads the port error status CSR for a particular switch port to determine if the port has an active link. Returns **RIO\_PORT\_N\_ERR\_STS\_PORT\_OK** if the port is active or **0** if it is inactive.

## AUTHOR

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

Author.

## COPYRIGHT
