'\" t .\" Title: usb_ep_fifo_status .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Kernel Mode Gadget API .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "USB_EP_FIFO_STATUS" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Kernel Mode Gadget API" .\" ----------------------------------------------------------------- .\" * 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_ep_fifo_status \- returns number of bytes in fifo, or error .SH "SYNOPSIS" .HP \w'int\ usb_ep_fifo_status('u .BI "int usb_ep_fifo_status(struct\ usb_ep\ *\ " "ep" ");" .SH "ARGUMENTS" .PP \fIep\fR .RS 4 the endpoint whose fifo status is being checked\&. .RE .SH "DESCRIPTION" .PP FIFO endpoints may have \(lqunclaimed data\(rq in them in certain cases, such as after aborted transfers\&. Hosts may not have collected all the IN data written by the gadget driver (and reported by a request completion)\&. The gadget driver may not have collected all the data written OUT to it by the host\&. Drivers that need precise handling for fault reporting or recovery may need to use this call\&. .PP This returns the number of such bytes in the fifo, or a negative errno if the endpoint doesn\*(Aqt use a FIFO or doesn\*(Aqt support such precise handling\&. .SH "AUTHOR" .PP \fBDavid Brownell\fR <\&dbrownell@users.sourceforge.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br