'\" t .\" Title: rio_dev_get .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: RapidIO driver interface .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "RIO_DEV_GET" "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_dev_get \- Increments the reference count of the RIO device structure .SH "SYNOPSIS" .HP \w'struct\ rio_dev\ *\ rio_dev_get('u .BI "struct rio_dev * rio_dev_get(struct\ rio_dev\ *\ " "rdev" ");" .SH "ARGUMENTS" .PP \fIrdev\fR .RS 4 RIO device being referenced .RE .SH "DESCRIPTION" .PP Each live reference to a device should be refcounted\&. .PP Drivers for RIO devices should normally record such references in their \fBprobe\fR methods, when they bind to a device, and release them by calling \fBrio_dev_put\fR, in their \fBdisconnect\fR methods\&. .SH "AUTHOR" .PP \fBMatt Porter\fR <\&mporter@kernel.crashing.org\&>, <\&mporter@mvista.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br