'\" t .\" Title: usb_interface_claimed .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Host-Side Data Types and Macros .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "USB_INTERFACE_CLAIME" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Host-Side Data Types and Macro" .\" ----------------------------------------------------------------- .\" * 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" usb_interface_claimed \- returns true iff an interface is claimed .SH "SYNOPSIS" .HP \w'int\ usb_interface_claimed('u .BI "int usb_interface_claimed(struct\ usb_interface\ *\ " "iface" ");" .SH "ARGUMENTS" .PP \fIiface\fR .RS 4 the interface being checked .RE .SH "RETURN" .PP \fBtrue\fR (nonzero) iff the interface is claimed, else \fBfalse\fR (zero)\&. .SH "NOTE" .PP Callers must own the driver model\*(Aqs usb bus readlock\&. So driver \fBprobe\fR entries don\*(Aqt need extra locking, but other call contexts may need to explicitly claim that lock\&. .SH "COPYRIGHT" .br