Scroll to navigation

USB_BUFFER_FREE(9) USB Core APIs USB_BUFFER_FREE(9)

NAME

usb_buffer_free - free memory allocated with usb_buffer_alloc

SYNOPSIS

void usb_buffer_free(struct usb_device * dev, size_t size, void * addr, dma_addr_t dma);

ARGUMENTS

dev

device the buffer was used with

size

requested buffer size

addr

CPU address of buffer

dma

DMA address of buffer

DESCRIPTION

This reclaims an I/O buffer, letting it be reused. The memory must have been allocated using usb_buffer_alloc, and the parameters must match those provided in that allocation request.

COPYRIGHT

May 2024 Kernel Hackers Manual 2.6.