centos man page for usb_alloc_urb

Query: usb_alloc_urb

OS: centos

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

USB_ALLOC_URB(9)						   USB Core APIs						  USB_ALLOC_URB(9)

NAME
usb_alloc_urb - creates a new urb for a USB driver to use
SYNOPSIS
struct urb * usb_alloc_urb(int iso_packets, gfp_t mem_flags);
ARGUMENTS
iso_packets number of iso packets for this urb mem_flags the type of memory to allocate, see kmalloc for a list of valid options for this.
DESCRIPTION
Creates an urb for the USB driver to use, initializes a few internal structures, incrementes the usage counter, and returns a pointer to it. If the driver want to use this urb for interrupt, control, or bulk endpoints, pass '0' as the number of iso packets. The driver must call usb_free_urb when it is finished with the urb.
RETURN
A pointer to the new urb, or NULL if no memory is available.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 USB_ALLOC_URB(9)
Related Man Pages
usb_control_msg(9) - suse
usb_submit_urb(9) - suse
usb_bulk_msg(9) - centos
usb_control_msg(9) - centos
usb_fill_int_urb(9) - centos
Similar Topics in the Unix Linux Community
Kernel crash - NULL pointer dereference when calling DEVICE_WRITE from KTHREAD in a USB device drive
Kernel crash - NULL pointer dereference when calling DEVICE_WRITE from KTHREAD in a USB device drive