1USB_EP_FIFO_STATUS(9)       Kernel Mode Gadget API       USB_EP_FIFO_STATUS(9)
2
3
4

NAME

6       usb_ep_fifo_status - returns number of bytes in fifo, or error
7

SYNOPSIS

9       int usb_ep_fifo_status(struct usb_ep * ep);
10

ARGUMENTS

12       ep
13           the endpoint whose fifo status is being checked.
14

DESCRIPTION

16       FIFO endpoints may have “unclaimed data” in them in certain cases, such
17       as after aborted transfers. Hosts may not have collected all the IN
18       data written by the gadget driver (and reported by a request
19       completion). The gadget driver may not have collected all the data
20       written OUT to it by the host. Drivers that need precise handling for
21       fault reporting or recovery may need to use this call.
22
23       This returns the number of such bytes in the fifo, or a negative errno
24       if the endpoint doesn´t use a FIFO or doesn´t support such precise
25       handling.
26

AUTHOR

28       David Brownell <dbrownell@users.sourceforge.net>
29           Author.
30
32Kernel Hackers Manual 2.6.         June 2019             USB_EP_FIFO_STATUS(9)
Impressum