---
name: "usb_init_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_init_urb"
---

# usb\_init\_urb(9)

initializes a urb so that it can be used by a USB driver

## NAME

usb\_init\_urb - initializes a urb so that it can be used by a USB driver

## SYNOPSIS

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

## ARGUMENTS

*urb*

pointer to the urb to initialize

## DESCRIPTION

Initializes a urb so that the USB subsystem can use it properly.

If a urb is created with a call to **usb\_alloc\_urb** it is not necessary to call this function. Only use this if you allocate the space for a struct urb on your own. If you call this function, be careful when freeing the memory for your urb that it is no longer in use by the USB core.

Only use this function if you \_really\_ understand what you are doing.

## COPYRIGHT
