#include <kernel.h>
#include <memory.h>
#include <device.h>
#include <nvram.h>
#include <string.h>
#include <stdlib.h>
#include <debug.h>
#include <stdio.h>
|
|
struct nvram_header * | nvram_header = NULL |
| |
|
struct nvram_tuple * | nvram_tuples [NVRAM_NHASH] |
| |
Functions to access the nvram settings from kernel space.
Commit nvram settings to memory. Due to the nature of nvram settings writing to memory everytime would greatly reduce the life of flash, so after making changes you must commit them to memory.
- Returns
- OK on success, SYSERR on failure
| char* nvramGet |
( |
char * |
name | ) |
|
Find the value of a variable.
- Parameters
-
| *name | name of variable to find |
- Returns
- pointer to requested tuple struct
| devcall nvramInit |
( |
void |
| ) |
|
Initialize the nvram variable structures for editing
- Returns
- OK on success, SYSERR on failure
| devcall nvramSet |
( |
char * |
name, |
|
|
char * |
value |
|
) |
| |
Change the variable name to value. If name does not exist, create it, otherwise replace the old value with the new.
- Parameters
-
| *name | name to modify |
| *value | value to set name |
- Returns
- OK on successful change, SYSERR on failure
| devcall nvramUnset |
( |
char * |
name | ) |
|
Remove a setting from nvram.
- Parameters
-
| *name | name to remove from nvram settings |
- Returns
- OK on success, SYSERR on failure