1USB_FILL_INT_URB(9) Host-Side Data Types and Macro USB_FILL_INT_URB(9)
2
3
4
6 usb_fill_int_urb - macro to help initialize a interrupt urb
7
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
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
41 Initializes a interrupt urb with the proper information needed to
42 submit it to a device. Note that high speed interrupt endpoints use a
43 logarithmic encoding of the endpoint interval, and express polling
44 intervals in microframes (eight per millisecond) rather than in frames
45 (one per millisecond).
46
48Kernel Hackers Manual 2.6. June 2019 USB_FILL_INT_URB(9)