LIBEFI(3) BSD Library Functions Manual LIBEFI(3)
NAME
efi_getvar, efi_nextvarname, efi_setvar -- interface for accessing the EFI variable services
LIBRARY
library ``libefi''
SYNOPSIS
#include <libefi.h>
int
efi_getvar(char *name, uuid_t *vendor, uint32_t *attrib, size_t *datasize, void *data);
int
efi_nextvarname(size_t *namesize, char *name, uuid_t *vendor);
int
efi_setvar(char *name, uuid_t *vendor, uint32_t attrib, size_t datasize, void *data);
DESCRIPTION
The libefi library provides access to a select set of the runtime services of the Extensible Firmware Interface (EFI).
The efi_nextvarname() function is used to enumerate the variables. The namesize parameter needs to be set to the size of the buffer pointed
to by name. On return, namesize is set to the length of the variable name (including the terminating '