carta
efi_name_to_guid(3)

efi_name_to_guid3

Efi non volatile variable support

Part of efi_append_variable(3).

Usage

int

int

int

int

int

int

int

int

int

int

int

int

int

Overview

The libefivar library implements access to EFI Variables via the EFI Runtime Services. 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 supports 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.

The following functions have not been implemented yet:

  • efi_append_variable()

  • efi_get_next_variable_name()

  • efi_get_variable()

  • efi_get_variable_attributes()

  • efi_get_variable_size()

  • efi_guid_to_name()

  • efi_guid_to_str()

  • efi_guid_to_symbol()

  • efi_name_to_guid()

  • efi_set_variable()

  • efi_str_to_guid()

History

  • FreeBSD 16.0-CURRENT (2026-10-27) to FreeBSD 13.3-RELEASE: the text shown here
  • FreeBSD 13.2-RELEASE to FreeBSD 13.0-RELEASE
  • FreeBSD 12.4-RELEASE
  • FreeBSD 12.3-RELEASE
  • FreeBSD 12.2-RELEASE
  • FreeBSD 12.1-RELEASE
  • FreeBSD 12.0-RELEASE
  • FreeBSD 11.4-RELEASE
  • FreeBSD 11.3-RELEASE
  • FreeBSD 11.2-RELEASE
  • FreeBSD 11.1-RELEASE

History

The libefivar library first appeared in FreeBSD 12.0.

Authors

This software was originally written by Warner Losh.

Bugs

No facilities exist to process the strings as native UTF. This is a limitation in the Linux libefivar library interface.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.