1USB_ALLOC_URB(9)                 USB Core APIs                USB_ALLOC_URB(9)
2
3
4

NAME

6       usb_alloc_urb - creates a new urb for a USB driver to use
7

SYNOPSIS

9       struct urb * usb_alloc_urb(int iso_packets, gfp_t mem_flags);
10

ARGUMENTS

12       iso_packets
13           number of iso packets for this urb
14
15       mem_flags
16           the type of memory to allocate, see kmalloc for a list of valid
17           options for this.
18

DESCRIPTION

20       Creates an urb for the USB driver to use, initializes a few internal
21       structures, incrementes the usage counter, and returns a pointer to it.
22
23       If no memory is available, NULL is returned.
24
25       If the driver want to use this urb for interrupt, control, or bulk
26       endpoints, pass ´0´ as the number of iso packets.
27
28       The driver must call usb_free_urb when it is finished with the urb.
29
31Kernel Hackers Manual 2.6.         June 2019                  USB_ALLOC_URB(9)
Impressum