table of contents
other versions
- stretch 4.9.168-1
USB_BLOCK_URB(9) | USB Core APIs | USB_BLOCK_URB(9) |
NAME¶
usb_block_urb - reliably prevent further use of an URBSYNOPSIS¶
void usb_block_urb(struct urb * urb);
ARGUMENTS¶
urbpointer to URB to be blocked, may be NULL
DESCRIPTION¶
After the routine has run, attempts to resubmit the URB will fail with error -EPERM. Thus even if the URB's completion handler always tries to resubmit, it will not succeed and the URB will become idle.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.
COPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |