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

Description

Creates a USB host controller bus structure with the specified usb_operations and initializes all the necessary internal objects. (For use only by USB Host Controller Drivers.)

If no memory is available, NULL is returned.

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