Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
notify.c File Reference
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/notifier.h>
#include <linux/usb.h>
#include <linux/mutex.h>
#include "usb.h"

Go to the source code of this file.

Functions

void usb_register_notify (struct notifier_block *nb)
 
 EXPORT_SYMBOL_GPL (usb_register_notify)
 
void usb_unregister_notify (struct notifier_block *nb)
 
 EXPORT_SYMBOL_GPL (usb_unregister_notify)
 
void usb_notify_add_device (struct usb_device *udev)
 
void usb_notify_remove_device (struct usb_device *udev)
 
void usb_notify_add_bus (struct usb_bus *ubus)
 
void usb_notify_remove_bus (struct usb_bus *ubus)
 

Function Documentation

EXPORT_SYMBOL_GPL ( usb_register_notify  )
EXPORT_SYMBOL_GPL ( usb_unregister_notify  )
void usb_notify_add_bus ( struct usb_bus *  ubus)

Definition at line 61 of file notify.c.

void usb_notify_add_device ( struct usb_device *  udev)

Definition at line 47 of file notify.c.

void usb_notify_remove_bus ( struct usb_bus *  ubus)

Definition at line 66 of file notify.c.

void usb_notify_remove_device ( struct usb_device *  udev)

Definition at line 52 of file notify.c.

void usb_register_notify ( struct notifier_block nb)

usb_register_notify - register a notifier callback whenever a usb change happens : pointer to the notifier block for the callback events.

These changes are either USB devices or busses being added or removed.

Definition at line 27 of file notify.c.

void usb_unregister_notify ( struct notifier_block nb)

usb_unregister_notify - unregister a notifier callback : pointer to the notifier block for the callback events.

usb_register_notify() must have been previously called for this function to work properly.

Definition at line 40 of file notify.c.