|
Linux Kernel
3.7.1
|
#include <linux/device.h>#include <linux/module.h>#include <linux/errno.h>#include <linux/slab.h>#include <linux/string.h>#include "base.h"Go to the source code of this file.
| int driver_create_file | ( | struct device_driver * | drv, |
| const struct driver_attribute * | attr | ||
| ) |
|
read |
driver_find_device - device iterator for locating a particular device. : The device's driver : Device to begin with : Data to pass to match function : Callback function to check device
This is similar to the driver_for_each_device() function above, but it returns a reference to a device that is 'found' for later use, as determined by the callback.
The callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.
| int driver_register | ( | struct device_driver * | drv | ) |
| void driver_remove_file | ( | struct device_driver * | drv, |
| const struct driver_attribute * | attr | ||
| ) |
| void driver_unregister | ( | struct device_driver * | drv | ) |
| EXPORT_SYMBOL_GPL | ( | driver_for_each_device | ) |
| EXPORT_SYMBOL_GPL | ( | driver_find_device | ) |
| EXPORT_SYMBOL_GPL | ( | driver_create_file | ) |
| EXPORT_SYMBOL_GPL | ( | driver_remove_file | ) |
| EXPORT_SYMBOL_GPL | ( | driver_register | ) |
| EXPORT_SYMBOL_GPL | ( | driver_unregister | ) |
| EXPORT_SYMBOL_GPL | ( | driver_find | ) |
1.8.2