'\" t .\" Title: rio_lock_device .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: RapidIO driver interface .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "RIO_LOCK_DEVICE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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_lock_device \- Acquires host device lock for specified device .SH "SYNOPSIS" .HP \w'int\ rio_lock_device('u .BI "int rio_lock_device(struct\ rio_mport\ *\ " "port" ", u16\ " "destid" ", u8\ " "hopcount" ", int\ " "wait_ms" ");" .SH "ARGUMENTS" .PP \fIport\fR .RS 4 Master port to send transaction .RE .PP \fIdestid\fR .RS 4 Destination ID for device/switch .RE .PP \fIhopcount\fR .RS 4 Hopcount to reach switch .RE .PP \fIwait_ms\fR .RS 4 Max wait time in msec (0 = no timeout) .RE .SH "DESCRIPTION" .PP Attepts to acquire host device lock for specified device Returns 0 if device lock acquired or EINVAL if timeout expires\&. .SH "AUTHOR" .PP \fBMatt Porter\fR <\&mporter@kernel.crashing.org\&>, <\&mporter@mvista.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br