Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
device.c File Reference
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/slab.h>
#include <asm/errno.h>

Go to the source code of this file.

Functions

struct of_device_idof_match_device (const struct of_device_id *matches, const struct device *dev)
 
 EXPORT_SYMBOL (of_match_device)
 
struct platform_deviceof_dev_get (struct platform_device *dev)
 
 EXPORT_SYMBOL (of_dev_get)
 
void of_dev_put (struct platform_device *dev)
 
 EXPORT_SYMBOL (of_dev_put)
 
int of_device_add (struct platform_device *ofdev)
 
int of_device_register (struct platform_device *pdev)
 
 EXPORT_SYMBOL (of_device_register)
 
void of_device_unregister (struct platform_device *ofdev)
 
 EXPORT_SYMBOL (of_device_unregister)
 
ssize_t of_device_get_modalias (struct device *dev, char *str, ssize_t len)
 
void of_device_uevent (struct device *dev, struct kobj_uevent_env *env)
 
int of_device_uevent_modalias (struct device *dev, struct kobj_uevent_env *env)
 

Function Documentation

EXPORT_SYMBOL ( of_match_device  )
EXPORT_SYMBOL ( of_dev_get  )
EXPORT_SYMBOL ( of_dev_put  )
EXPORT_SYMBOL ( of_device_register  )
EXPORT_SYMBOL ( of_device_unregister  )
struct platform_device* of_dev_get ( struct platform_device dev)
read

Definition at line 29 of file device.c.

void of_dev_put ( struct platform_device dev)

Definition at line 43 of file device.c.

int of_device_add ( struct platform_device ofdev)

Definition at line 50 of file device.c.

ssize_t of_device_get_modalias ( struct device dev,
char str,
ssize_t  len 
)

Definition at line 81 of file device.c.

int of_device_register ( struct platform_device pdev)

Definition at line 68 of file device.c.

void of_device_uevent ( struct device dev,
struct kobj_uevent_env env 
)

of_device_uevent - Display OF related uevent information

Definition at line 131 of file device.c.

int of_device_uevent_modalias ( struct device dev,
struct kobj_uevent_env env 
)

Definition at line 158 of file device.c.

void of_device_unregister ( struct platform_device ofdev)

Definition at line 75 of file device.c.

struct of_device_id* of_match_device ( const struct of_device_id matches,
const struct device dev 
)
read

of_match_device - Tell if a struct device matches an of_device_id list : array of of device match structures to search in : the of device structure to match against

Used by a driver to check whether an platform_device present in the system is in its list of supported devices.

Definition at line 20 of file device.c.