1USB_FILL_INT_URB(9)     Host-Side Data Types and Macro     USB_FILL_INT_URB(9)
2
3
4

NAME

6       usb_fill_int_urb - macro to help initialize a interrupt urb
7

SYNOPSIS

9       void usb_fill_int_urb(struct urb * urb, struct usb_device * dev,
10                             unsigned int pipe, void * transfer_buffer,
11                             int buffer_length, usb_complete_t complete_fn,
12                             void * context, int interval);
13

ARGUMENTS

15       urb
16           pointer to the urb to initialize.
17
18       dev
19           pointer to the struct usb_device for this urb.
20
21       pipe
22           the endpoint pipe
23
24       transfer_buffer
25           pointer to the transfer buffer
26
27       buffer_length
28           length of the transfer buffer
29
30       complete_fn
31           pointer to the usb_complete_t function
32
33       context
34           what to set the urb context to.
35
36       interval
37           what to set the urb interval to, encoded like the endpoint
38           descriptor's bInterval value.
39

DESCRIPTION

41       Initializes a interrupt urb with the proper information needed to
42       submit it to a device.
43
44       Note that High Speed and SuperSpeed(+) interrupt endpoints use a
45       logarithmic encoding of the endpoint interval, and express polling
46       intervals in microframes (eight per millisecond) rather than in frames
47       (one per millisecond).
48
49       Wireless USB also uses the logarithmic encoding, but specifies it in
50       units of 128us instead of 125us. For Wireless USB devices, the interval
51       is passed through to the host controller, rather than being translated
52       into microframe units.
53
55Kernel Hackers Manual 3.10         June 2019               USB_FILL_INT_URB(9)
Impressum