---
name: "usb_fill_control_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_fill_control_urb"
---

# usb\_fill\_control\_urb(9)

initializes a control urb

## NAME

usb\_fill\_control\_urb - initializes a control urb

## SYNOPSIS

**void usb\_fill\_control\_urb(struct urb \*** *urb***, struct usb\_device \*** *dev***, unsigned int** *pipe***, unsigned char \*** *setup\_packet***, void \*** *transfer\_buffer***, int** *buffer\_length***, usb\_complete\_t** *complete\_fn***, void \*** *context***);**

## ARGUMENTS

*urb*

pointer to the urb to initialize.

*dev*

pointer to the struct usb\_device for this urb.

*pipe*

the endpoint pipe

*setup\_packet*

pointer to the setup\_packet buffer

*transfer\_buffer*

pointer to the transfer buffer

*buffer\_length*

length of the transfer buffer

*complete\_fn*

pointer to the usb\_complete\_t function

*context*

what to set the urb context to.

## DESCRIPTION

Initializes a control urb with the proper information needed to submit it to a device.

## COPYRIGHT
