This file contains the functions to recognize an elomax unit when it is connected and disconnected from the usb-bus. More...
Functions | |
| static int | elomax_driver_probe (struct usb_interface *interface, const struct usb_device_id *id) |
| This function creates an instance for the just connected elomax unit. | |
| static void | elomax_driver_disconnect (struct usb_interface *interface) |
| This function destroys the instance for the just disconnected elomax unit. | |
This file contains the functions to recognize an elomax unit when it is connected and disconnected from the usb-bus.
The elomax_driver_probe() and elomax_driver_disconnect() functions in this file are via the 'driver table' (see elomaxdriver.h) communicated to the usb-core. The usb-core calls these functions when an elomax driver is connected and disconnected from the usb-core.
| static void elomax_driver_disconnect | ( | struct usb_interface * | interface | ) | [static] |
This function destroys the instance for the just disconnected elomax unit.
This function is called by the usb-core when an elomax unit is disconnected from the usb-bus. It uses the supplied struct usb_interface to refind the attached instance (via usb_get_intfdata()), destroys this instance by calling elomax_instance_destruct() and resets the pointer from the interface to NULL (via usb_set_intfdata()).
| [in] | interface | The interface which is disconnected from the usb-bus. |
| static int elomax_driver_probe | ( | struct usb_interface * | interface, | |
| const struct usb_device_id * | id | |||
| ) | [static] |
This function creates an instance for the just connected elomax unit.
This function is called by the usb-core when an elomax unit is connected to the usb-bus. It checks if the connected unit is really an elomax unit, then calls elomax_instance_construct() to create an instance for this unit. This instance is then attached to the struct usb_interface via usb_set_intfdata().
| [in] | interface | The data-structure in which the usb-core keeps its administration for this unit. |
| [in] | id | Additional information the usb-core supplies about the probed device. |
1.6.3