1USB_HCD_CHECK_UNLINK(9)      Host Controller APIs      USB_HCD_CHECK_UNLINK(9)
2
3
4

NAME

6       usb_hcd_check_unlink_urb - check whether an URB may be unlinked
7

SYNOPSIS

9       int usb_hcd_check_unlink_urb(struct usb_hcd * hcd, struct urb * urb,
10                                    int status);
11

ARGUMENTS

13       hcd
14           host controller to which urb was submitted
15
16       urb
17           URB being checked for unlinkability
18
19       status
20           error code to store in urb if the unlink succeeds
21

DESCRIPTION

23       Host controller drivers should call this routine in their dequeue
24       method. The HCD's private spinlock must be held and interrupts must be
25       disabled. The actions carried out here are required for making sure
26       than an unlink is valid.
27

RETURN

29       0 for no error, otherwise a negative error code (in which case the
30       dequeue method must fail). The possible error codes are:
31
32       -EIDRM: urb was not submitted or has already completed. The completion
33       function may not have been called yet.
34
35       -EBUSY: urb has already been unlinked.
36
38Kernel Hackers Manual 3.10         June 2019           USB_HCD_CHECK_UNLINK(9)
Impressum