'\" t .\" Title: rio_sport_is_active .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: Internals .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "RIO_SPORT_IS_ACTIVE" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "Internals" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" rio_sport_is_active \- Tests if a switch port has an active connection\&. .SH "SYNOPSIS" .HP \w'int\ rio_sport_is_active('u .BI "int rio_sport_is_active(struct\ rio_dev\ *\ " "rdev" ", int\ " "sp" ");" .SH "ARGUMENTS" .PP \fIstruct rio_dev * rdev\fR .RS 4 RapidIO device object .RE .PP \fIint sp\fR .RS 4 Switch port number .RE .SH "DESCRIPTION" .PP Reads the port error status CSR for a particular switch port to determine if the port has an active link\&. Returns \fBRIO_PORT_N_ERR_STS_PORT_OK\fR if the port is active or \fB0\fR if it is inactive\&. .SH "AUTHOR" .PP \fBMatt Porter\fR <\&mporter@kernel.crashing.org\&>, <\&mporter@mvista.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br