'\" t .\" Title: rio_route_get_entry .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: RapidIO driver interface .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "RIO_ROUTE_GET_ENTRY" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "RapidIO driver interface" .\" ----------------------------------------------------------------- .\" * 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_route_get_entry \- Read an entry from a switch routing table .SH "SYNOPSIS" .HP \w'int\ rio_route_get_entry('u .BI "int rio_route_get_entry(struct\ rio_dev\ *\ " "rdev" ", u16\ " "table" ", u16\ " "route_destid" ", u8\ *\ " "route_port" ", int\ " "lock" ");" .SH "ARGUMENTS" .PP \fIstruct rio_dev * rdev\fR .RS 4 RIO device .RE .PP \fIu16 table\fR .RS 4 Routing table ID .RE .PP \fIu16 route_destid\fR .RS 4 Destination ID to be routed .RE .PP \fIu8 * route_port\fR .RS 4 Pointer to read port number into .RE .PP \fIint lock\fR .RS 4 apply a hardware lock on switch device flag (1=lock, 0=no_lock) .RE .SH "DESCRIPTION" .PP If available calls the switch specific \fBget_entry\fR method to fetch a route entry from a switch routing table\&. Otherwise uses standard RT read method as defined by RapidIO specification\&. A specific routing table can be selected using the \fItable\fR argument if a switch has per port routing tables or the standard (or global) table may be used by passing \fBRIO_GLOBAL_TABLE\fR in \fItable\fR\&. .PP Returns \fB0\fR on success or \fB\-EINVAL\fR on failure\&. .SH "AUTHOR" .PP \fBMatt Porter\fR <\&mporter@kernel.crashing.org\&>, <\&mporter@mvista.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br