'\" t .\" Title: usb_block_urb .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: USB Core APIs .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "USB_BLOCK_URB" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "USB Core APIs" .\" ----------------------------------------------------------------- .\" * 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_block_urb \- reliably prevent further use of an URB .SH "SYNOPSIS" .HP \w'void\ usb_block_urb('u .BI "void usb_block_urb(struct\ urb\ *\ " "urb" ");" .SH "ARGUMENTS" .PP \fIurb\fR .RS 4 pointer to URB to be blocked, may be NULL .RE .SH "DESCRIPTION" .PP After the routine has run, attempts to resubmit the URB will fail with error \-EPERM\&. Thus even if the URB\*(Aqs completion handler always tries to resubmit, it will not succeed and the URB will become idle\&. .PP The URB must not be deallocated while this routine is running\&. In particular, when a driver calls this routine, it must insure that the completion handler cannot deallocate the URB\&. .SH "COPYRIGHT" .br