Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
efivars.c File Reference
#include <linux/capability.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/smp.h>
#include <linux/efi.h>
#include <linux/sysfs.h>
#include <linux/kobject.h>
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/pstore.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Data Structures

struct  efi_variable
 
struct  efivar_entry
 
struct  efivar_attribute
 
struct  variable_validate
 

Macros

#define EFIVARS_VERSION   "0.08"
 
#define EFIVARS_DATE   "2004-May-17"
 
#define DUMP_NAME_LEN   52
 
#define PSTORE_EFI_ATTRIBUTES
 
#define EFIVAR_ATTR(_name, _mode, _show, _store)
 
#define to_efivar_attr(_attr)   container_of(_attr, struct efivar_attribute, attr)
 
#define to_efivar_entry(obj)   container_of(obj, struct efivar_entry, kobj)
 

Functions

 MODULE_AUTHOR ("Matt Domsch <[email protected]>")
 
 MODULE_DESCRIPTION ("sysfs interface to EFI Variables")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (EFIVARS_VERSION)
 
struct efi_variable __attribute__ ((packed))
 
void unregister_efivars (struct efivars *efivars)
 
 EXPORT_SYMBOL_GPL (unregister_efivars)
 
int register_efivars (struct efivars *efivars, const struct efivar_operations *ops, struct kobject *parent_kobj)
 
 EXPORT_SYMBOL_GPL (register_efivars)
 
 module_init (efivars_init)
 
 module_exit (efivars_exit)
 

Variables

efi_char16_t VariableName [1024/sizeof(efi_char16_t)]
 
efi_guid_t VendorGuid
 
unsigned long DataSize
 
__u8 Data [1024]
 
efi_status_t Status
 
__u32 Attributes
 
struct efivar_entry __attribute__
 

Macro Definition Documentation

#define DUMP_NAME_LEN   52

Definition at line 93 of file efivars.c.

#define EFIVAR_ATTR (   _name,
  _mode,
  _show,
  _store 
)
Value:
struct efivar_attribute efivar_attr_##_name = { \
.attr = {.name = __stringify(_name), .mode = _mode}, \
.show = _show, \
.store = _store, \
};

Definition at line 130 of file efivars.c.

#define EFIVARS_DATE   "2004-May-17"

Definition at line 86 of file efivars.c.

#define EFIVARS_VERSION   "0.08"

Definition at line 85 of file efivars.c.

#define PSTORE_EFI_ATTRIBUTES
Value:
EFI_VARIABLE_BOOTSERVICE_ACCESS | \
EFI_VARIABLE_RUNTIME_ACCESS)

Definition at line 125 of file efivars.c.

#define to_efivar_attr (   _attr)    container_of(_attr, struct efivar_attribute, attr)

Definition at line 137 of file efivars.c.

#define to_efivar_entry (   obj)    container_of(obj, struct efivar_entry, kobj)

Definition at line 138 of file efivars.c.

Function Documentation

struct efi_variable __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

EXPORT_SYMBOL_GPL ( unregister_efivars  )
EXPORT_SYMBOL_GPL ( register_efivars  )
MODULE_AUTHOR ( "Matt Domsch <[email protected]>"  )
MODULE_DESCRIPTION ( "sysfs interface to EFI Variables"  )
module_exit ( efivars_exit  )
module_init ( efivars_init  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( EFIVARS_VERSION  )
int register_efivars ( struct efivars *  efivars,
const struct efivar_operations *  ops,
struct kobject parent_kobj 
)

Definition at line 1132 of file efivars.c.

void unregister_efivars ( struct efivars *  efivars)

Definition at line 1112 of file efivars.c.

Variable Documentation

__u32 Attributes

Definition at line 115 of file efivars.c.

__u8 Data

Definition at line 113 of file efivars.c.

unsigned long DataSize

Definition at line 112 of file efivars.c.

efi_status_t Status

Definition at line 114 of file efivars.c.

efi_char16_t VariableName[1024/sizeof(efi_char16_t)]

Definition at line 110 of file efivars.c.

efi_guid_t VendorGuid

Definition at line 111 of file efivars.c.