1USB_BLOCK_URB(9) USB Core APIs USB_BLOCK_URB(9)
2
3
4
6 usb_block_urb - reliably prevent further use of an URB
7
9 void usb_block_urb(struct urb * urb);
10
12 urb
13 pointer to URB to be blocked, may be NULL
14
16 After the routine has run, attempts to resubmit the URB will fail with
17 error -EPERM. Thus even if the URB's completion handler always tries to
18 resubmit, it will not succeed and the URB will become idle.
19
20 The URB must not be deallocated while this routine is running. In
21 particular, when a driver calls this routine, it must insure that the
22 completion handler cannot deallocate the URB.
23
25Kernel Hackers Manual 3.10 June 2019 USB_BLOCK_URB(9)