TianoCore EDK2 master
Loading...
Searching...
No Matches
Dpc.h File Reference

Go to the source code of this file.

Data Structures

struct  DPC_ENTRY
 

Functions

EFI_STATUS EFIAPI DpcQueueDpc (IN EFI_DPC_PROTOCOL *This, IN EFI_TPL DpcTpl, IN EFI_DPC_PROCEDURE DpcProcedure, IN VOID *DpcContext OPTIONAL)
 
EFI_STATUS EFIAPI DpcDispatchDpc (IN EFI_DPC_PROTOCOL *This)
 

Detailed Description

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

Module Name:

Dpc.h

Abstract:

Definition in file Dpc.h.

Function Documentation

◆ DpcDispatchDpc()

EFI_STATUS EFIAPI DpcDispatchDpc ( IN EFI_DPC_PROTOCOL This)

Dispatch the queue of DPCs. ALL DPCs that have been queued with a DpcTpl value greater than or equal to the current TPL are invoked in the order that they were queued. DPCs with higher DpcTpl values are invoked before DPCs with lower DpcTpl values.

Parameters
ThisProtocol instance pointer.
Return values
EFI_SUCCESSOne or more DPCs were invoked.
EFI_NOT_FOUNDNo DPCs were invoked.

Definition at line 213 of file Dpc.c.

◆ DpcQueueDpc()

EFI_STATUS EFIAPI DpcQueueDpc ( IN EFI_DPC_PROTOCOL This,
IN EFI_TPL  DpcTpl,
IN EFI_DPC_PROCEDURE  DpcProcedure,
IN VOID *DpcContext  OPTIONAL 
)

Add a Deferred Procedure Call to the end of the DPC queue.

Parameters
ThisProtocol instance pointer.
DpcTplThe EFI_TPL that the DPC should be invoked.
DpcProcedurePointer to the DPC's function.
DpcContextPointer to the DPC's context. Passed to DpcProcedure when DpcProcedure is invoked.
Return values
EFI_SUCCESSThe DPC was queued.
EFI_INVALID_PARAMETERDpcTpl is not a valid EFI_TPL.
EFI_INVALID_PARAMETERDpcProcedure is NULL.
EFI_OUT_OF_RESOURCESThere are not enough resources available to add the DPC to the queue.

Definition at line 69 of file Dpc.c.