|
iPXE
|
Non-volatile stored options. More...
Go to the source code of this file.
Data Structures | |
| struct | nvo_block |
| A block of non-volatile stored options. More... | |
Macros | |
| #define | NVO_SETTINGS_NAME "nvo" |
| Name of non-volatile options settings block. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| int | nvo_applies (struct settings *settings, const struct setting *setting) |
| void | nvo_init (struct nvo_block *nvo, struct nvs_device *nvs, size_t address, size_t len, int(*resize)(struct nvo_block *nvo, size_t len), struct refcnt *refcnt) |
| Initialise non-volatile stored options. More... | |
| int | register_nvo (struct nvo_block *nvo, struct settings *parent) |
| Register non-volatile stored options. More... | |
| void | unregister_nvo (struct nvo_block *nvo) |
| Unregister non-volatile stored options. More... | |
Non-volatile stored options.
Definition in file nvo.h.
| #define NVO_SETTINGS_NAME "nvo" |
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| void nvo_init | ( | struct nvo_block * | nvo, |
| struct nvs_device * | nvs, | ||
| size_t | address, | ||
| size_t | len, | ||
| int(*)(struct nvo_block *nvo, size_t len) | resize, | ||
| struct refcnt * | refcnt | ||
| ) |
Initialise non-volatile stored options.
| nvo | Non-volatile options block |
| nvs | Underlying non-volatile storage device |
| address | Address within NVS device |
| len | Length of non-volatile options data |
| resize | Resize method |
| refcnt | Containing object reference counter, or NULL |
Definition at line 273 of file nvo.c.
References address, nvo_block::address, dhcpopt_init(), nvo_block::dhcpopts, nvo_block::len, len, NULL, nvo_realloc_dhcpopt(), nvo_settings_operations, nvo_block::nvs, nvo_block::resize, nvo_block::settings, and settings_init().
Referenced by falcon_probe_spi(), myri10ge_nv_init(), nvs_vpd_nvo_init(), and realtek_init_eeprom().
Register non-volatile stored options.
| nvo | Non-volatile options block |
| parent | Parent settings block, or NULL |
| rc | Return status code |
Definition at line 293 of file nvo.c.
References DBGC, nvo_block::len, nvo_load(), nvo_realloc(), NVO_SETTINGS_NAME, rc, register_settings(), and nvo_block::settings.
Referenced by efab_probe(), hermon_register_netdev(), myri10ge_nv_init(), and realtek_probe().
| void unregister_nvo | ( | struct nvo_block * | nvo | ) |
Unregister non-volatile stored options.
| nvo | Non-volatile options block |
Definition at line 324 of file nvo.c.
References DBGC, nvo_realloc(), nvo_block::settings, and unregister_settings().
Referenced by efab_remove(), hermon_register_netdev(), hermon_unregister_netdev(), myri10ge_nv_fini(), and realtek_remove().
1.8.15