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

NAME

6       usb_alloc_dev - usb device constructor (usbcore-internal)
7

SYNOPSIS

9       struct usb_device * usb_alloc_dev(struct usb_device * parent,
10                                         struct usb_bus * bus,
11                                         unsigned port1);
12

ARGUMENTS

14       parent
15           hub to which device is connected; null to allocate a root hub
16
17       bus
18           bus used to access the device
19
20       port1
21           one-based index of port; ignored for root hubs
22

CONTEXT

24       !in_interrupt
25

DESCRIPTION

27       Only hub drivers (including virtual root hub drivers for host
28       controllers) should ever call this.
29
30       This call may not be used in a non-sleeping context.
31

RETURN

33       On success, a pointer to the allocated usb device.  NULL on failure.
34
36Kernel Hackers Manual 3.10         June 2019                  USB_ALLOC_DEV(9)
Impressum