usb_alloc_bus

Name

usb_alloc_bus --  creates a new USB host controller structure

Synopsis

struct usb_bus * usb_alloc_bus (struct usb_operations * op);

Arguments

op

pointer to a struct usb_operations that this bus structure should use

Context

!in_interrupt

Description

Creates a USB host controller bus structure with the specified usb_operations and initializes all the necessary internal objects.

If no memory is available, NULL is returned.

The caller should call usb_put_bus when it is finished with the structure.