|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/types.h>#include <linux/errno.h>#include <linux/fs.h>#include <linux/miscdevice.h>#include <linux/fcntl.h>#include <linux/nvram.h>#include <linux/init.h>#include <linux/slab.h>#include <linux/spinlock.h>#include <asm/uaccess.h>#include <asm/nvram.h>#include <asm/rtas.h>#include <asm/prom.h>#include <asm/machdep.h>Go to the source code of this file.
Data Structures | |
| struct | nvram_header |
| struct | nvram_partition |
Macros | |
| #define | NVRAM_HEADER_LEN sizeof(struct nvram_header) |
| #define | NVRAM_BLOCK_LEN NVRAM_HEADER_LEN |
Functions | |
: name of the partition to remove, or NULL for a | |
nvram_remove_partition - Remove one or more partitions in nvram signature only match : signature of the partition(s) to remove : When removing all partitions with a matching signature, leave these alone. | |
| int __init | nvram_remove_partition (const char *name, int sig, const char *exceptions[]) |
: name of the partition to create | |
nvram_create_partition - Create a partition in nvram : signature of the partition to create : size of data to allocate in bytes : minimum acceptable size (0 means req_size) Returns a negative error code or a positive nvram index of the beginning of the data area of the newly created partition. If you provided a min_size smaller than req_size you need to query for the actual size yourself after the call using nvram_partition_get_size(). | |
| loff_t __init | nvram_create_partition (const char *name, int sig, int req_size, int min_size) |
| int | nvram_get_partition_size (loff_t data_index) |
: Name of the partition or NULL for any name | |
| loff_t | nvram_find_partition (const char *name, int sig, int *out_size) |
| int __init | nvram_scan_partitions (void) |
| void __exit | nvram_cleanup (void) |
| module_init (nvram_init) | |
| module_exit (nvram_cleanup) | |
| MODULE_LICENSE ("GPL") | |
Variables | |
| struct file_operations | nvram_fops |
| #define NVRAM_BLOCK_LEN NVRAM_HEADER_LEN |
Definition at line 38 of file nvram_64.c.
| #define NVRAM_HEADER_LEN sizeof(struct nvram_header) |
Definition at line 37 of file nvram_64.c.
| module_exit | ( | nvram_cleanup | ) |
| module_init | ( | nvram_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
Definition at line 557 of file nvram_64.c.
Definition at line 329 of file nvram_64.c.
Definition at line 451 of file nvram_64.c.
| int nvram_get_partition_size | ( | loff_t | data_index | ) |
nvram_get_partition_size - Get the data size of an nvram partition : This is the offset of the start of the data of the partition. The same value that is returned by nvram_create_partition().
Definition at line 433 of file nvram_64.c.
Definition at line 271 of file nvram_64.c.
Definition at line 467 of file nvram_64.c.
| struct file_operations nvram_fops |
Definition at line 182 of file nvram_64.c.
1.8.2