FreeBSD/sys/dev/usb/usb_dev.c
/*------------------------------------------------------------------------*
 *	usb_fifo_free_buffer
 *
 * This function will free the buffers associated with a FIFO. This
 * function can be called multiple times in a row.
 *------------------------------------------------------------------------*/
usb_fifo_free_buffer
This function will free the buffers associated with a FIFO. This
function can be called multiple times in a row.
usb_fifo_free_buffer This function will free the buffers associated with a FIFO . This function can be called multiple times in a row .
void
usb_fifo_free_buffer(struct usb_fifo *f)
{
	if (f->queue_data) {
		free(f->queue_data, M_USBDEV);
		f->queue_data = NULL;
	}
	memset(&f->free_q, 0, sizeof(f->free_q));
	memset(&f->used_q, 0, sizeof(f->used_q));
}
void usb_fifo_free_buffer ( struct usb_fifo * f ) { if ( f -> queue_data ) { free ( f -> queue_data , M_USBDEV ) ; f -> queue_data = NULL ; } memset ( & f -> free_q , 0 , sizeof ( f -> free_q ) ) ; memset ( & f -> used_q , 0 , sizeof ( f -> used_q ) ) ; }
usb_fifo_free_buffer
 This function will free the buffers associated with a FIFO.
usb_fifo_free_buffer This function will free the buffers associated with a FIFO .
/* free old buffer */ /* reset queues */