.TH "usb_alloc_urb" 9 "usb_alloc_urb" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME usb_alloc_urb \- creates a new urb for a USB driver to use .SH SYNOPSIS .B "struct urb *" usb_alloc_urb .BI "(int " iso_packets ");" .SH ARGUMENTS .IP "iso_packets" 12 number of iso packets for this urb .SH "DESCRIPTION" Creates an urb for the USB driver to use and returns a pointer to it. If no memory is available, NULL is returned. If the driver want to use this urb for interrupt, control, or bulk endpoints, pass '0' as the number of iso packets. The driver should call \fBusb_free_urb\fP when it is finished with the urb.