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

Function EfiAcquireLock

MdePkg/Library/UefiLib/UefiLib.c:449–463  ·  view source on GitHub ↗

Acquires ownership of a lock. This function raises the system's current task priority level to the task priority level of the mutual exclusion lock. Then, it places the lock in the acquired state. If Lock is NULL, then ASSERT(). If Lock is not initialized, then ASSERT(). If Lock is already in the acquired state, then ASSERT(). @param Lock A pointer to the lo

Source from the content-addressed store, hash-verified

447
448**/
449VOID
450EFIAPI
451EfiAcquireLock (
452 IN EFI_LOCK *Lock
453 )
454{
455 ASSERT (Lock != NULL);
456 if (!Lock) {
457 return;
458 }
459 ASSERT (Lock->Lock == EfiLockReleased);
460
461 Lock->OwnerTpl = gBS->RaiseTPL (Lock->Tpl);
462 Lock->Lock = EfiLockAcquired;
463}
464
465/**
466 Acquires ownership of a lock.

Callers 15

PcRtcInitFunction · 0.85
PcRtcGetTimeFunction · 0.85
PcRtcSetTimeFunction · 0.85
PcRtcGetWakeupTimeFunction · 0.85
PcRtcSetWakeupTimeFunction · 0.85
PcatRootBridgeIoPciRWFunction · 0.85
PcatRootBridgeIoPciRWFunction · 0.85
PcatRootBridgeIoPciRWFunction · 0.85
FatWaitNonblockingTaskFunction · 0.85
FatQueueTaskFunction · 0.85
FatAcquireLockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected