Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sysfs.c File Reference
#include <linux/device.h>
#include <linux/cpu.h>
#include <linux/slab.h>
#include <linux/smp.h>
#include <linux/stat.h>
#include <hv/hypervisor.h>

Go to the source code of this file.

Macros

#define HV_CONF_ATTR(name, conf)
 
#define create_cpu_attr(name)
 
#define create_hv_attr(name)
 

Functions

 subsys_initcall (create_sysfs_entries)
 

Macro Definition Documentation

#define create_cpu_attr (   name)
Value:
if (!err) \
err = device_create_file(cpu_subsys.dev_root, &dev_attr_##name);
#define create_hv_attr (   name)
Value:
if (!err) \
err = sysfs_create_file(hypervisor_kobj, &dev_attr_##name.attr);
#define HV_CONF_ATTR (   name,
  conf 
)
Value:
static ssize_t name ## _show(struct device *dev, \
char *page) \
{ \
return get_hv_confstr(page, conf); \
} \
static DEVICE_ATTR(name, 0444, name ## _show, NULL);

Definition at line 76 of file sysfs.c.

Function Documentation

subsys_initcall ( create_sysfs_entries  )