Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
dio-driver.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/dio.h>

Go to the source code of this file.

Functions

struct dio_device_id * dio_match_device (const struct dio_device_id *ids, const struct dio_dev *d)
 
int dio_register_driver (struct dio_driver *drv)
 
void dio_unregister_driver (struct dio_driver *drv)
 
 postcore_initcall (dio_driver_init)
 
 EXPORT_SYMBOL (dio_match_device)
 
 EXPORT_SYMBOL (dio_register_driver)
 
 EXPORT_SYMBOL (dio_unregister_driver)
 
 EXPORT_SYMBOL (dio_bus_type)
 

Variables

struct bus_type dio_bus_type
 

Function Documentation

struct dio_device_id* dio_match_device ( const struct dio_device_id *  ids,
const struct dio_dev *  d 
)
read

dio_match_device - Tell if a DIO device structure has a matching DIO device id structure : array of DIO device id structures to search in : the DIO device structure to match against

Used by a driver to check whether a DIO device present in the system is in its list of supported devices. Returns the matching dio_device_id structure or NULL if there is no match.

Definition at line 29 of file dio-driver.c.

int dio_register_driver ( struct dio_driver *  drv)

dio_register_driver - register a new DIO driver : the driver structure to register

Adds the driver structure to the list of registered drivers Returns zero or a negative error value.

Definition at line 76 of file dio-driver.c.

void dio_unregister_driver ( struct dio_driver *  drv)

dio_unregister_driver - unregister a DIO driver : the driver structure to unregister

Deletes the driver structure from the list of registered DIO 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 97 of file dio-driver.c.

EXPORT_SYMBOL ( dio_match_device  )
EXPORT_SYMBOL ( dio_register_driver  )
EXPORT_SYMBOL ( dio_unregister_driver  )
EXPORT_SYMBOL ( dio_bus_type  )
postcore_initcall ( dio_driver_init  )

Variable Documentation

struct bus_type dio_bus_type
Initial value:
= {
.name = "dio",
.match = dio_bus_match,
.probe = dio_device_probe,
}

Definition at line 126 of file dio-driver.c.