Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
LIBEFIVAR(3)		 BSD Library Functions Manual		  LIBEFIVAR(3)

NAME
     libefivar -- EFI Non Volatile Variable Suppoert

SYNOPSIS
     #include <efivar.h>

     int
     efi_append_variable(efi_guid_t guid, const	char *name, void *data,
	 size_t	data_size, uint32_t attributes);

     int
     efi_del_variable(efi_guid_t guid, const char *name);

     int
     efi_get_variable(efi_guid_t guid, const char *name, void **data,
	 ssize_t *data_size, uint32_t *attributes);

     int
     efi_get_variable_attributes(efi_guid_t guid, const	char *name,
	 uint32_t *attributes);

     int
     efi_get_variable_size(efi_guid_t guid, const char *name, size_t *size);

     int
     efi_get_next_variable_name(efi_guid_t **guid, char	**name);

     int
     efi_guid_to_name(efi_guid_t *guid,	char **name);

     int
     efi_guid_to_symbol(efi_guid_t *guid, char **symbol);

     int
     efi_guid_to_str(const efi_guid_t *guid, char **sp);

     int
     efi_name_to_guid(const char *name,	efi_guid_t *guid);

     int
     efi_set_variable(efi_guid_t guid, const char *name, void *data,
	 size_t	data_size, uint32_t attributes);

     int
     efi_str_to_guid(const char	*s, efi_guid_t *guid);;

     int
     efi_variables_supported(void);;

DESCRIPTION
     The libefivar library implements access to	EFI Variables via the EFI Run-
     time Serivces.  All char *	strings	are converted to 16-bit	UTF strings
     before passing them to EFI.

     efi_variables_supported() returns non-zero	if the current machine sup-
     ports setting of EFI firmware variables and the kernel support for	doing
     so	is present.  Otherwise zero is returned.

     efi_del_variable()	deletes	the EFI	variable selected by guid and name.

     efi_get_variable()	efi_get_variable_attributes() efi_get_variable_size()
     efi_append_variable() efi_set_variable() efi_get_next_variable_name()
     efi_str_to_guid() efi_guid_to_str() efi_name_to_guid() efi_guid_to_name()
     efi_guid_to_symbol() This function	is not actually	implemented.

BUGS
     No	facilities exist to process the	strings	as native UTF.	This is	a lim-
     itation in	the Linux libefivar library interface.

SEE ALSO
     efidev(4)

AUTHORS
     This software was originally written by Warner Losh.

BSD			      September	14, 2016			   BSD

NAME | SYNOPSIS | DESCRIPTION | BUGS | SEE ALSO | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=libefivar&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help