Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dca-core.c File Reference
#include <linux/kernel.h>
#include <linux/notifier.h>
#include <linux/device.h>
#include <linux/dca.h>
#include <linux/slab.h>
#include <linux/module.h>

Go to the source code of this file.

Macros

#define DCA_VERSION   "1.12.1"
 

Functions

 MODULE_VERSION (DCA_VERSION)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Intel Corporation")
 
int dca_add_requester (struct device *dev)
 
 EXPORT_SYMBOL_GPL (dca_add_requester)
 
int dca_remove_requester (struct device *dev)
 
 EXPORT_SYMBOL_GPL (dca_remove_requester)
 
u8 dca_common_get_tag (struct device *dev, int cpu)
 
u8 dca3_get_tag (struct device *dev, int cpu)
 
 EXPORT_SYMBOL_GPL (dca3_get_tag)
 
u8 dca_get_tag (int cpu)
 
 EXPORT_SYMBOL_GPL (dca_get_tag)
 
struct dca_provideralloc_dca_provider (struct dca_ops *ops, int priv_size)
 
 EXPORT_SYMBOL_GPL (alloc_dca_provider)
 
void free_dca_provider (struct dca_provider *dca)
 
 EXPORT_SYMBOL_GPL (free_dca_provider)
 
int register_dca_provider (struct dca_provider *dca, struct device *dev)
 
 EXPORT_SYMBOL_GPL (register_dca_provider)
 
void unregister_dca_provider (struct dca_provider *dca, struct device *dev)
 
 EXPORT_SYMBOL_GPL (unregister_dca_provider)
 
void dca_register_notify (struct notifier_block *nb)
 
 EXPORT_SYMBOL_GPL (dca_register_notify)
 
void dca_unregister_notify (struct notifier_block *nb)
 
 EXPORT_SYMBOL_GPL (dca_unregister_notify)
 
 arch_initcall (dca_init)
 
 module_exit (dca_exit)
 

Macro Definition Documentation

#define DCA_VERSION   "1.12.1"

Definition at line 33 of file dca-core.c.

Function Documentation

struct dca_provider* alloc_dca_provider ( struct dca_ops ops,
int  priv_size 
)
read

alloc_dca_provider - get data struct for describing a dca provider - pointer to struct of dca operation function pointers - size of extra mem to be added for provider's needs

Definition at line 324 of file dca-core.c.

arch_initcall ( dca_init  )
u8 dca3_get_tag ( struct device dev,
int  cpu 
)

dca3_get_tag - return the dca tag to the requester device for the given cpu (new api) - the device that wants dca service - the cpuid as returned by get_cpu()

Definition at line 298 of file dca-core.c.

int dca_add_requester ( struct device dev)

dca_add_requester - add a dca client to the list - the device that wants dca service

Definition at line 186 of file dca-core.c.

u8 dca_common_get_tag ( struct device dev,
int  cpu 
)

dca_common_get_tag - return the dca tag (serves both new and old api) - the device that wants dca service - the cpuid as returned by get_cpu()

Definition at line 273 of file dca-core.c.

u8 dca_get_tag ( int  cpu)

dca_get_tag - return the dca tag for the given cpu (old api) - the cpuid as returned by get_cpu()

Definition at line 311 of file dca-core.c.

void dca_register_notify ( struct notifier_block nb)

dca_register_notify - register a client's notifier callback

Definition at line 439 of file dca-core.c.

int dca_remove_requester ( struct device dev)

dca_remove_requester - remove a dca client from the list - the device that wants dca service

Definition at line 241 of file dca-core.c.

void dca_unregister_notify ( struct notifier_block nb)

dca_unregister_notify - remove a client's notifier callback

Definition at line 448 of file dca-core.c.

EXPORT_SYMBOL_GPL ( dca_add_requester  )
EXPORT_SYMBOL_GPL ( dca_remove_requester  )
EXPORT_SYMBOL_GPL ( dca3_get_tag  )
EXPORT_SYMBOL_GPL ( dca_get_tag  )
EXPORT_SYMBOL_GPL ( alloc_dca_provider  )
EXPORT_SYMBOL_GPL ( free_dca_provider  )
EXPORT_SYMBOL_GPL ( register_dca_provider  )
EXPORT_SYMBOL_GPL ( unregister_dca_provider  )
EXPORT_SYMBOL_GPL ( dca_register_notify  )
EXPORT_SYMBOL_GPL ( dca_unregister_notify  )
void free_dca_provider ( struct dca_provider dca)

free_dca_provider - release the dca provider data struct - pointer to struct of dca operation function pointers - size of extra mem to be added for provider's needs

Definition at line 344 of file dca-core.c.

MODULE_AUTHOR ( "Intel Corporation"  )
module_exit ( dca_exit  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( DCA_VERSION  )
int register_dca_provider ( struct dca_provider dca,
struct device dev 
)

register_dca_provider - register a dca provider - struct created by alloc_dca_provider() - device providing dca services

Definition at line 355 of file dca-core.c.

void unregister_dca_provider ( struct dca_provider dca,
struct device dev 
)

unregister_dca_provider - remove a dca provider - struct created by alloc_dca_provider()

Definition at line 412 of file dca-core.c.