|
Linux Kernel
3.7.1
|
#include <linux/init.h>#include <linux/module.h>#include <linux/rio.h>#include <linux/rio_ids.h>#include "rio.h"Go to the source code of this file.
Functions | |
| struct rio_dev * | rio_dev_get (struct rio_dev *rdev) |
| void | rio_dev_put (struct rio_dev *rdev) |
| int | rio_register_driver (struct rio_driver *rdrv) |
| void | rio_unregister_driver (struct rio_driver *rdrv) |
| postcore_initcall (rio_bus_init) | |
| EXPORT_SYMBOL_GPL (rio_register_driver) | |
| EXPORT_SYMBOL_GPL (rio_unregister_driver) | |
| EXPORT_SYMBOL_GPL (rio_bus_type) | |
| EXPORT_SYMBOL_GPL (rio_dev_get) | |
| EXPORT_SYMBOL_GPL (rio_dev_put) | |
Variables | |
| struct device | rio_bus |
| struct bus_type | rio_bus_type |
| EXPORT_SYMBOL_GPL | ( | rio_register_driver | ) |
| EXPORT_SYMBOL_GPL | ( | rio_unregister_driver | ) |
| EXPORT_SYMBOL_GPL | ( | rio_bus_type | ) |
| EXPORT_SYMBOL_GPL | ( | rio_dev_get | ) |
| EXPORT_SYMBOL_GPL | ( | rio_dev_put | ) |
| postcore_initcall | ( | rio_bus_init | ) |
rio_dev_get - Increments the reference count of the RIO device structure
: RIO device being referenced
Each live reference to a device should be refcounted.
Drivers for RIO devices should normally record such references in their probe() methods, when they bind to a device, and release them by calling rio_dev_put(), in their disconnect() methods.
Definition at line 57 of file rio-driver.c.
| int rio_register_driver | ( | struct rio_driver * | rdrv | ) |
rio_register_driver - register a new RIO driver : the RIO driver structure to register
Adds a &struct rio_driver to the list of registered drivers. Returns a negative value on error, otherwise 0. If no error occurred, the driver remains registered even if no device was claimed during registration.
Definition at line 143 of file rio-driver.c.
| void rio_unregister_driver | ( | struct rio_driver * | rdrv | ) |
rio_unregister_driver - unregister a RIO driver : the RIO driver structure to unregister
Deletes the &struct rio_driver from the list of registered RIO drivers, gives it a chance to clean up by calling its remove() function for each device it was responsible for, and marks those devices as driverless.
Definition at line 162 of file rio-driver.c.
Definition at line 195 of file rio-driver.c.
Definition at line 199 of file rio-driver.c.
1.8.2