VSF Documented
device.h File Reference
#include <linux/kobject.h>
#include <linux/types.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
#include <linux/device/bus.h>
#include <linux/device/class.h>
#include <linux/device/driver.h>
#include <linux/gfp.h>

Go to the source code of this file.

Data Structures

struct  device_type
 
struct  device_attribute
 
struct  device
 

Macros

#define dev_dbg(__dev, __fmt, ...)
 
#define dev_emerg(__dev, __fmt, ...)
 
#define dev_crit(__dev, __fmt, ...)
 
#define dev_alert(__dev, __fmt, ...)
 
#define dev_err(__dev, __fmt, ...)
 
#define dev_warn(__dev, __fmt, ...)
 
#define dev_notice(__dev, __fmt, ...)
 
#define dev_info(__dev, __fmt, ...)
 
#define dev_level_once(__level, __dev, __fmt, ...)
 
#define dev_dbg_once(__dev, __fmt, ...)
 
#define dev_emerg_once(__dev, __fmt, ...)
 
#define dev_crit_once(__dev, __fmt, ...)
 
#define dev_alert_once(__dev, __fmt, ...)
 
#define dev_err_once(__dev, __fmt, ...)
 
#define dev_warn_once(__dev, __fmt, ...)
 
#define dev_notice_once(__dev, __fmt, ...)
 
#define dev_info_once(__dev, __fmt, ...)
 
#define device_wakeup_enable(__dev)
 
#define device_wakeup_disable(__dev)
 
#define devm_add_action(dev, action, data)
 
#define devm_add_action_or_reset(dev, action, data)
 

Typedefs

typedef void(* dr_release_t) (struct device *dev, void *res)
 

Functions

struct deviceget_device (struct device *dev)
 
void put_device (struct device *dev)
 
bool kill_device (struct device *dev)
 
int dev_set_name (struct device *dev, const char *fmt,...)
 
int device_register (struct device *dev)
 
void device_unregister (struct device *dev)
 
void device_initialize (struct device *dev)
 
int device_add (struct device *dev)
 
void device_del (struct device *dev)
 
void devres_add (struct device *dev, void *res)
 
int devres_release_all (struct device *dev)
 
char * devm_kvasprintf (struct device *dev, gfp_t gfp, const char *fmt, va_list ap)
 
char * devm_kasprintf (struct device *dev, gfp_t gfp, const char *fmt,...)
 
int __devm_add_action (struct device *dev, void(*action)(void *), void *data, const char *name)
 

Macro Definition Documentation

◆ dev_dbg

#define dev_dbg ( __dev,
__fmt,
... )
Value:
pr_debug(__fmt, ##__VA_ARGS__)
#define pr_debug(__fmt,...)
Definition printk.h:43

◆ dev_emerg

#define dev_emerg ( __dev,
__fmt,
... )
Value:
pr_emerg(__fmt, ##__VA_ARGS__)
#define pr_emerg(__fmt,...)
Definition printk.h:35

◆ dev_crit

#define dev_crit ( __dev,
__fmt,
... )
Value:
pr_crit(__fmt, ##__VA_ARGS__)
#define pr_crit(__fmt,...)
Definition printk.h:37

◆ dev_alert

#define dev_alert ( __dev,
__fmt,
... )
Value:
pr_alert(__fmt, ##__VA_ARGS__)
#define pr_alert(__fmt,...)
Definition printk.h:36

◆ dev_err

#define dev_err ( __dev,
__fmt,
... )
Value:
pr_err(__fmt, ##__VA_ARGS__)
#define pr_err(__fmt,...)
Definition printk.h:38

◆ dev_warn

#define dev_warn ( __dev,
__fmt,
... )
Value:
pr_warn(__fmt, ##__VA_ARGS__)
#define pr_warn(__fmt,...)
Definition printk.h:39

◆ dev_notice

#define dev_notice ( __dev,
__fmt,
... )
Value:
pr_notice(__fmt, ##__VA_ARGS__)
#define pr_notice(__fmt,...)
Definition printk.h:40

◆ dev_info

#define dev_info ( __dev,
__fmt,
... )
Value:
pr_info(__fmt, ##__VA_ARGS__)
#define pr_info(__fmt,...)
Definition printk.h:41

◆ dev_level_once

#define dev_level_once ( __level,
__dev,
__fmt,
... )
Value:
do { \
static bool __printed = false; \
if (!__printed) { \
__printed = true; \
__level(__dev, __fmt, ##__VA_ARGS__); \
} \
} while (0)

◆ dev_dbg_once

#define dev_dbg_once ( __dev,
__fmt,
... )
Value:
dev_level_once(dev_dbg, __dev, __fmt, ##__VA_ARGS__)
#define dev_dbg(__dev, __fmt,...)
Definition device.h:71
#define dev_level_once(__level, __dev, __fmt,...)
Definition device.h:80

◆ dev_emerg_once

#define dev_emerg_once ( __dev,
__fmt,
... )
Value:
dev_level_once(dev_emerg, __dev, __fmt, ##__VA_ARGS__)
#define dev_emerg(__dev, __fmt,...)
Definition device.h:72

◆ dev_crit_once

#define dev_crit_once ( __dev,
__fmt,
... )
Value:
dev_level_once(dev_crit, __dev, __fmt, ##__VA_ARGS__)
#define dev_crit(__dev, __fmt,...)
Definition device.h:73

◆ dev_alert_once

#define dev_alert_once ( __dev,
__fmt,
... )
Value:
dev_level_once(dev_alert, __dev, __fmt, ##__VA_ARGS__)
#define dev_alert(__dev, __fmt,...)
Definition device.h:74

◆ dev_err_once

#define dev_err_once ( __dev,
__fmt,
... )
Value:
dev_level_once(dev_err, __dev, __fmt, ##__VA_ARGS__)
#define dev_err(__dev, __fmt,...)
Definition device.h:75

◆ dev_warn_once

#define dev_warn_once ( __dev,
__fmt,
... )
Value:
dev_level_once(dev_warn, __dev, __fmt, ##__VA_ARGS__)
#define dev_warn(__dev, __fmt,...)
Definition device.h:76

◆ dev_notice_once

#define dev_notice_once ( __dev,
__fmt,
... )
Value:
dev_level_once(dev_notice, __dev, __fmt, ##__VA_ARGS__)
#define dev_notice(__dev, __fmt,...)
Definition device.h:77

◆ dev_info_once

#define dev_info_once ( __dev,
__fmt,
... )
Value:
dev_level_once(dev_info, __dev, __fmt, ##__VA_ARGS__)
#define dev_info(__dev, __fmt,...)
Definition device.h:78

◆ device_wakeup_enable

#define device_wakeup_enable ( __dev)

◆ device_wakeup_disable

#define device_wakeup_disable ( __dev)

◆ devm_add_action

#define devm_add_action ( dev,
action,
data )
Value:
struct ieee80211_ext_chansw_ie data
Definition ieee80211.h:80
u8 action
Definition ieee80211.h:120
int __devm_add_action(struct device *dev, void(*action)(void *), void *data, const char *name)
Definition vsf_linux_core.c:1094

◆ devm_add_action_or_reset

#define devm_add_action_or_reset ( dev,
action,
data )
Value:
__devm_add_action_or_reset(dev, action, data, #action)

Typedef Documentation

◆ dr_release_t

typedef void(* dr_release_t) (struct device *dev, void *res)

Function Documentation

◆ get_device()

struct device * get_device ( struct device * dev)
extern

◆ put_device()

void put_device ( struct device * dev)
extern

◆ kill_device()

bool kill_device ( struct device * dev)
extern

◆ dev_set_name()

int dev_set_name ( struct device * dev,
const char * fmt,
... )
extern

◆ device_register()

int device_register ( struct device * dev)
extern

◆ device_unregister()

void device_unregister ( struct device * dev)
extern

◆ device_initialize()

void device_initialize ( struct device * dev)
extern

◆ device_add()

int device_add ( struct device * dev)
extern

◆ device_del()

void device_del ( struct device * dev)
extern

◆ devres_add()

void devres_add ( struct device * dev,
void * res )
extern

◆ devres_release_all()

int devres_release_all ( struct device * dev)
extern

◆ devm_kvasprintf()

char * devm_kvasprintf ( struct device * dev,
gfp_t gfp,
const char * fmt,
va_list ap )
extern

◆ devm_kasprintf()

char * devm_kasprintf ( struct device * dev,
gfp_t gfp,
const char * fmt,
... )
extern

◆ __devm_add_action()

int __devm_add_action ( struct device * dev,
void(* action )(void *),
void * data,
const char * name )
Generated from commit: vsfteam/vsf@ceb53fd