1USB_EP_ALLOC_REQUEST(9) Kernel Mode Gadget API USB_EP_ALLOC_REQUEST(9)
2
3
4
6 usb_ep_alloc_request - allocate a request object to use with this
7 endpoint
8
10 struct usb_request * usb_ep_alloc_request(struct usb_ep * ep,
11 gfp_t gfp_flags);
12
14 ep
15 the endpoint to be used with with the request
16
17 gfp_flags
18 GFP_* flags to use
19
21 Request objects must be allocated with this call, since they normally
22 need controller-specific setup and may even need endpoint-specific
23 resources such as allocation of DMA descriptors. Requests may be
24 submitted with usb_ep_queue, and receive a single completion callback.
25 Free requests with usb_ep_free_request, when they are no longer needed.
26
27 Returns the request, or null if one could not be allocated.
28
30 David Brownell <dbrownell@users.sourceforge.net>
31 Author.
32
34Kernel Hackers Manual 3.10 June 2019 USB_EP_ALLOC_REQUEST(9)