MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / DeleteNvramVariable

Function DeleteNvramVariable

rEFIt_UEFI/Platform/Nvram.cpp:269–282  ·  view source on GitHub ↗

Deletes NVRAM variable. */

Source from the content-addressed store, hash-verified

267
268/** Deletes NVRAM variable. */
269EFI_STATUS
270DeleteNvramVariable (
271 IN CONST CHAR16 *VariableName,
272 IN EFI_GUID *VendorGuid
273 )
274{
275 EFI_STATUS Status;
276
277 // Delete: attributes and data size = 0
278 Status = gRT->SetVariable (VariableName, VendorGuid, 0, 0, NULL);
279 //DBG("DeleteNvramVariable (%ls, guid = %s):\n", VariableName, efiStrError(Status));
280
281 return Status;
282}
283
284BOOLEAN
285IsDeletableVariable (

Callers 6

StartLoaderMethod · 0.85
SetKernelRelocBaseMethod · 0.85
SetVariablesForOSXFunction · 0.85
SetNvramVariableFunction · 0.85
ResetNativeNvramFunction · 0.85
RemoveStartupDiskVolumeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected