Function

FwupdPluginefivar_get_data

Declaration [src]

gboolean
fu_efivar_get_data (
  const gchar* guid,
  const gchar* name,
  guint8** data,
  gsize* data_sz,
  guint32* attr,
  GError** error
)

Description [src]

Gets the data from a UEFI variable in NVRAM.

Available since:1.4.0

Parameters

guid const gchar*
 

Globally unique identifier.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
name const gchar*
 

Variable name.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
data guint8**
 

Data to set.

 The data is owned by the caller of the function.
data_sz gsize*
 

Size of data.

 The data is owned by the caller of the function.
attr guint32*
 

Attributes.

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE on success.