Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
edd.c File Reference
#include <linux/module.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/stat.h>
#include <linux/err.h>
#include <linux/ctype.h>
#include <linux/slab.h>
#include <linux/limits.h>
#include <linux/device.h>
#include <linux/pci.h>
#include <linux/blkdev.h>
#include <linux/edd.h>

Go to the source code of this file.

Data Structures

struct  edd_device
 
struct  edd_attribute
 

Macros

#define EDD_VERSION   "0.16"
 
#define EDD_DATE   "2004-Jun-25"
 
#define left   (PAGE_SIZE - (p - buf) - 1)
 
#define EDD_DEVICE_ATTR(_name, _mode, _show, _test)
 
#define to_edd_attr(_attr)   container_of(_attr,struct edd_attribute,attr)
 
#define to_edd_device(obj)   container_of(obj,struct edd_device,kobj)
 

Functions

 MODULE_AUTHOR ("Matt Domsch <[email protected]>")
 
 MODULE_DESCRIPTION ("sysfs interface to BIOS EDD information")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (EDD_VERSION)
 
 late_initcall (edd_init)
 
 module_exit (edd_exit)
 

Macro Definition Documentation

#define EDD_DATE   "2004-Jun-25"

Definition at line 47 of file edd.c.

#define EDD_DEVICE_ATTR (   _name,
  _mode,
  _show,
  _test 
)
Value:
struct edd_attribute edd_attr_##_name = { \
.attr = {.name = __stringify(_name), .mode = _mode }, \
.show = _show, \
.test = _test, \
};

Definition at line 75 of file edd.c.

#define EDD_VERSION   "0.16"

Definition at line 46 of file edd.c.

#define left   (PAGE_SIZE - (p - buf) - 1)

Definition at line 54 of file edd.c.

#define to_edd_attr (   _attr)    container_of(_attr,struct edd_attribute,attr)

Definition at line 110 of file edd.c.

#define to_edd_device (   obj)    container_of(obj,struct edd_device,kobj)

Definition at line 111 of file edd.c.

Function Documentation

late_initcall ( edd_init  )
MODULE_AUTHOR ( "Matt Domsch <[email protected]>"  )
MODULE_DESCRIPTION ( "sysfs interface to BIOS EDD information"  )
module_exit ( edd_exit  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( EDD_VERSION  )