46 #define NVO_SETTINGS_NAME "nvo" struct dhcp_options dhcpopts
DHCP options block.
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.
A non-volatile storage device.
uint64_t address
Base address.
int nvo_applies(struct settings *settings, const struct setting *setting)
void * data
Option-containing data.
int register_nvo(struct nvo_block *nvo, struct settings *parent)
Register non-volatile stored options.
struct nvs_device * nvs
Underlying non-volatile storage device.
A block of non-volatile stored options.
int(* resize)(struct nvo_block *nvo, size_t len)
Resize non-volatile stored option block.
void unregister_nvo(struct nvo_block *nvo)
Unregister non-volatile stored options.
unsigned int address
Address within NVS device.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
size_t len
Length of options data.