1USB_BUFFER_FREE(9) USB Core APIs USB_BUFFER_FREE(9)
2
3
4
6 usb_buffer_free - free memory allocated with usb_buffer_alloc
7
9 void usb_buffer_free(struct usb_device * dev, size_t size, void * addr,
10 dma_addr_t dma);
11
13 dev
14 device the buffer was used with
15
16 size
17 requested buffer size
18
19 addr
20 CPU address of buffer
21
22 dma
23 DMA address of buffer
24
26 This reclaims an I/O buffer, letting it be reused. The memory must have
27 been allocated using usb_buffer_alloc, and the parameters must match
28 those provided in that allocation request.
29
31Kernel Hackers Manual 2.6. June 2019 USB_BUFFER_FREE(9)