---
name: "usb_free_urb"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/usb_free_urb"
---

# usb\_free\_urb(9)

frees the memory used by a urb when all users of it are finished

## NAME

usb\_free\_urb - frees the memory used by a urb when all users of it are finished

## SYNOPSIS

**void usb\_free\_urb(struct urb \*** *urb***);**

## ARGUMENTS

*urb*

pointer to the urb to free, may be NULL

## DESCRIPTION

Must be called when a user of a urb is finished with it. When the last user of the urb calls this function, the memory of the urb is freed.

## NOTE

The transfer buffer associated with the urb is not freed unless the URB\_FREE\_BUFFER transfer flag is set.

## COPYRIGHT
