'\" t .\" Title: usb_fill_int_urb .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Host-Side Data Types and Macros .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "USB_FILL_INT_URB" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Host-Side Data Types and Macro" .\" ----------------------------------------------------------------- .\" * 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_fill_int_urb \- macro to help initialize a interrupt urb .SH "SYNOPSIS" .HP \w'void\ usb_fill_int_urb('u .BI "void usb_fill_int_urb(struct\ urb\ *\ " "urb" ", struct\ usb_device\ *\ " "dev" ", unsigned\ int\ " "pipe" ", void\ *\ " "transfer_buffer" ", int\ " "buffer_length" ", usb_complete_t\ " "complete_fn" ", void\ *\ " "context" ", int\ " "interval" ");" .SH "ARGUMENTS" .PP \fIurb\fR .RS 4 pointer to the urb to initialize\&. .RE .PP \fIdev\fR .RS 4 pointer to the struct usb_device for this urb\&. .RE .PP \fIpipe\fR .RS 4 the endpoint pipe .RE .PP \fItransfer_buffer\fR .RS 4 pointer to the transfer buffer .RE .PP \fIbuffer_length\fR .RS 4 length of the transfer buffer .RE .PP \fIcomplete_fn\fR .RS 4 pointer to the usb_complete_t function .RE .PP \fIcontext\fR .RS 4 what to set the urb context to\&. .RE .PP \fIinterval\fR .RS 4 what to set the urb interval to, encoded like the endpoint descriptor\*(Aqs bInterval value\&. .RE .SH "DESCRIPTION" .PP Initializes a interrupt urb with the proper information needed to submit it to a device\&. .PP Note that High Speed and SuperSpeed(+) interrupt endpoints use a logarithmic encoding of the endpoint interval, and express polling intervals in microframes (eight per millisecond) rather than in frames (one per millisecond)\&. .PP Wireless USB also uses the logarithmic encoding, but specifies it in units of 128us instead of 125us\&. For Wireless USB devices, the interval is passed through to the host controller, rather than being translated into microframe units\&. .SH "COPYRIGHT" .br