TianoCore EDK2 master
Loading...
Searching...
No Matches
Library.c File Reference
#include "DxeMain.h"

Go to the source code of this file.

Functions

EFI_STATUS CoreAcquireLockOrFail (IN EFI_LOCK *Lock)
 
VOID CoreAcquireLock (IN EFI_LOCK *Lock)
 
VOID CoreReleaseLock (IN EFI_LOCK *Lock)
 

Detailed Description

DXE Core library services.

Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Library.c.

Function Documentation

◆ CoreAcquireLock()

VOID CoreAcquireLock ( IN EFI_LOCK Lock)

Raising to the task priority level of the mutual exclusion lock, and then acquires ownership of the lock.

Parameters
LockThe lock to acquire
Returns
Lock owned

Definition at line 59 of file Library.c.

◆ CoreAcquireLockOrFail()

EFI_STATUS CoreAcquireLockOrFail ( IN EFI_LOCK Lock)

Initialize a basic mutual exclusion lock. Each lock provides mutual exclusion access at it's task priority level. Since there is no-premption (at any TPL) or multiprocessor support, acquiring the lock only consists of raising to the locks TPL.

Parameters
LockThe EFI_LOCK structure to initialize
Return values
EFI_SUCCESSLock Owned.
EFI_ACCESS_DENIEDReentrant Lock Acquisition, Lock not Owned.

Definition at line 29 of file Library.c.

◆ CoreReleaseLock()

VOID CoreReleaseLock ( IN EFI_LOCK Lock)

Releases ownership of the mutual exclusion lock, and restores the previous task priority level.

Parameters
LockThe lock to release
Returns
Lock unowned

Definition at line 80 of file Library.c.