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

Go to the source code of this file.

Functions

int tc_register_driver (struct tc_driver *tdrv)
 
 EXPORT_SYMBOL (tc_register_driver)
 
void tc_unregister_driver (struct tc_driver *tdrv)
 
 EXPORT_SYMBOL (tc_unregister_driver)
 
struct tc_device_idtc_match_device (struct tc_driver *tdrv, struct tc_dev *tdev)
 
 EXPORT_SYMBOL (tc_match_device)
 
 EXPORT_SYMBOL (tc_bus_type)
 
 postcore_initcall (tc_driver_init)
 

Variables

struct bus_type tc_bus_type
 

Function Documentation

EXPORT_SYMBOL ( tc_register_driver  )
EXPORT_SYMBOL ( tc_unregister_driver  )
EXPORT_SYMBOL ( tc_match_device  )
EXPORT_SYMBOL ( tc_bus_type  )
postcore_initcall ( tc_driver_init  )
struct tc_device_id* tc_match_device ( struct tc_driver tdrv,
struct tc_dev tdev 
)
read

tc_match_device - tell if a TC device structure has a matching TC device ID structure : the TC driver to earch for matching TC device ID strings : the TC device structure to match against

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

Definition at line 59 of file tc-driver.c.

int tc_register_driver ( struct tc_driver tdrv)

tc_register_driver - register a new TC driver : the driver structure to register

Adds the driver structure 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 28 of file tc-driver.c.

void tc_unregister_driver ( struct tc_driver tdrv)

tc_unregister_driver - unregister a TC driver : the driver structure to unregister

Deletes the driver structure from the list of registered TC 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 43 of file tc-driver.c.

Variable Documentation

struct bus_type tc_bus_type
Initial value:
= {
.name = "tc",
.match = tc_bus_match,
}

Definition at line 99 of file tc-driver.c.