Soletta™ Framework
|
Routines to save values to EFIVARS persistent storage. More...
#include <stddef.h>
#include <stdint.h>
#include "sol-buffer.h"
#include "sol-log.h"
#include "sol-types.h"
Go to the source code of this file.
Macros | |
#define | CREATE_BLOB(_val) |
Macro to create a struct sol_blob with value passed as argument. More... | |
#define | CREATE_BUFFER(_val) |
Macro to create a struct sol_buffer with value passed as argument and flags SOL_BUFFER_FLAGS_MEMORY_NOT_OWNED and SOL_BUFFER_FLAGS_NO_NUL_BYTE. More... | |
Functions | |
static int | sol_efivars_read_bool (const char *name, bool *value) |
Reads a boolean from the EFI given variable and set to value. More... | |
static int | sol_efivars_read_double (const char *name, double *value) |
Reads a double from the EFI given variable and set to value. More... | |
static int | sol_efivars_read_drange (const char *name, struct sol_drange *value) |
Reads a sol_drange from the EFI given variable and set to value. More... | |
static int | sol_efivars_read_int32 (const char *name, int32_t *value) |
Reads an int32_t from the EFI given variable and set to value. More... | |
static int | sol_efivars_read_irange (const char *name, struct sol_irange *value) |
Reads a sol_irange from the EFI given variable and set to value. More... | |
int | sol_efivars_read_raw (const char *name, struct sol_buffer *buffer) |
Read stored contents and set to buffer. More... | |
static int | sol_efivars_read_string (const char *name, char **value) |
Reads a string from the EFI given variable and set to value. More... | |
static int | sol_efivars_read_uint8 (const char *name, uint8_t *value) |
Reads an uint8_t from the EFI given variable and set to value. More... | |
static int | sol_efivars_write_bool (const char *name, bool value, void(*cb)(void *data, const char *name, struct sol_blob *blob, int status), const void *data) |
Writes a boolean into an EFI variable. More... | |
static int | sol_efivars_write_double (const char *name, double value, void(*cb)(void *data, const char *name, struct sol_blob *blob, int status), const void *data) |
Writes a double into an EFI variable. More... | |
static int | sol_efivars_write_drange (const char *name, struct sol_drange *value, void(*cb)(void *data, const char *name, struct sol_blob *blob, int status), const void *data) |
Writes a sol_drange into an EFI variable. More... | |
static int | sol_efivars_write_int32 (const char *name, int32_t value, void(*cb)(void *data, const char *name, struct sol_blob *blob, int status), const void *data) |
Writes an int32_t into an EFI variable. More... | |
static int | sol_efivars_write_irange (const char *name, struct sol_irange *value, void(*cb)(void *data, const char *name, struct sol_blob *blob, int status), const void *data) |
Writes a sol_irange into an EFI variable. More... | |
int | sol_efivars_write_raw (const char *name, struct sol_blob *blob, void(*cb)(void *data, const char *name, struct sol_blob *blob, int status), const void *data) |
Writes buffer contents to storage. More... | |
static int | sol_efivars_write_string (const char *name, const char *value, void(*cb)(void *data, const char *name, struct sol_blob *blob, int status), const void *data) |
Writes a string into an EFI variable. More... | |
static int | sol_efivars_write_uint8 (const char *name, uint8_t value, void(*cb)(void *data, const char *name, struct sol_blob *blob, int status), const void *data) |
Writes an uint8_t into an EFI variable. More... | |
Routines to save values to EFIVARS persistent storage.