Class
FwupdPluginEfivars
Constructors
fu_efivars_new
Instance methods
fu_efivars_create_boot_entry_for_volume
Creates a BootXXXX variable for a given volume, name and target.
Available since: 2.0.6
fu_efivars_delete
Removes a variable from NVRAM, returning an error if it does not exist.
Available since: 2.0.0
fu_efivars_get_boot_entries
Gets the loadopt data for all the entries listed in BootOrder.
Available since: 2.0.0
fu_efivars_get_names
Gets the list of names where the GUID matches. An error is set if there are no names matching the GUID.
Available since: 2.0.0
fu_efivars_set_boot_data
Sets the raw data of the BootXXXX variable. If blob is NULL then the boot entry is deleted.
Available since: 2.0.0
fu_efivars_space_free
Gets the free size available for new EFI variables, as reported from QueryVariableInfo.
Available since: 2.0.12
fu_efivars_space_used
Gets the total size used by all EFI variables. This may be less than the size reported by the kernel as some (hopefully small) variables are hidden from userspace.
Available since: 2.0.0
Signals
Signals inherited from GObject (1)
GObject.Object::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct FwupdPluginEfivarsClass {
GObjectClass parent_class;
gboolean (* supported) (
FuEfivars* self,
GError** error
);
guint64 (* space_used) (
FuEfivars* self,
GError** error
);
guint64 (* space_free) (
FuEfivars* self,
GError** error
);
gboolean (* exists) (
FuEfivars* self,
const gchar* guid,
const gchar* name
);
GFileMonitor* (* get_monitor) (
FuEfivars* self,
const gchar* guid,
const gchar* name,
GError** error
);
gboolean (* get_data) (
FuEfivars* self,
const gchar* guid,
const gchar* name,
guint8** data,
gsize* data_sz,
FuEfiVariableAttrs* attr,
GError** error
);
gboolean (* set_data) (
FuEfivars* self,
const gchar* guid,
const gchar* name,
const guint8* data,
gsize sz,
FuEfiVariableAttrs attr,
GError** error
);
gboolean (* delete) (
FuEfivars* self,
const gchar* guid,
const gchar* name,
GError** error
);
gboolean (* delete_with_glob) (
FuEfivars* self,
const gchar* guid,
const gchar* name_glob,
GError** error
);
GPtrArray* (* get_names) (
FuEfivars* self,
const gchar* guid,
GError** error
);
}
Class members
parent_class |
|
| No description available. | |
supported |
|
| No description available. | |
space_used |
|
| No description available. | |
space_free |
|
| No description available. | |
exists |
|
| No description available. | |
get_monitor |
|
| No description available. | |
get_data |
|
| No description available. | |
set_data |
|
| No description available. | |
delete |
|
| No description available. | |
delete_with_glob |
|
| No description available. | |
get_names |
|
| No description available. |
Virtual methods
FwupdPlugin.EfivarsClass.delete
Removes a variable from NVRAM, returning an error if it does not exist.
Available since: 2.0.0
FwupdPlugin.EfivarsClass.delete_with_glob
Removes a group of variables from NVRAM.
Available since: 2.0.0
FwupdPlugin.EfivarsClass.get_data
Gets the data from a UEFI variable in NVRAM.
Available since: 2.0.0
FwupdPlugin.EfivarsClass.get_monitor
Returns a file monitor for a specific key.
Available since: 2.0.0
FwupdPlugin.EfivarsClass.get_names
Gets the list of names where the GUID matches. An error is set if there are no names matching the GUID.
Available since: 2.0.0
FwupdPlugin.EfivarsClass.space_free
Gets the free size available for new EFI variables, as reported from QueryVariableInfo.
Available since: 2.0.12
FwupdPlugin.EfivarsClass.space_used
Gets the total size used by all EFI variables. This may be less than the size reported by the kernel as some (hopefully small) variables are hidden from userspace.
Available since: 2.0.0
FwupdPlugin.EfivarsClass.supported
Determines if the kernel supports EFI variables.
Available since: 2.0.0