TianoCore EDK2 master
|
Go to the source code of this file.
Variables | |
EFI_TPL | gEfiCurrentTpl = TPL_APPLICATION |
EFI_LOCK | gEventQueueLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL) |
LIST_ENTRY | gEventQueue [TPL_HIGH_LEVEL+1] |
UINTN | gEventPending = 0 |
LIST_ENTRY | gEventSignalQueue = INITIALIZE_LIST_HEAD_VARIABLE (gEventSignalQueue) |
UINT32 | mEventTable [] |
EFI_EVENT | gIdleLoopEvent = NULL |
UEFI Event support functions implemented in this file.
Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
(C) Copyright 2015 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Event.c.
VOID CoreAcquireEventLock | ( | VOID | ) |
EFI_STATUS EFIAPI CoreCheckEvent | ( | IN EFI_EVENT | UserEvent | ) |
EFI_STATUS EFIAPI CoreCloseEvent | ( | IN EFI_EVENT | UserEvent | ) |
EFI_STATUS EFIAPI CoreCreateEvent | ( | IN UINT32 | Type, |
IN EFI_TPL | NotifyTpl, | ||
IN EFI_EVENT_NOTIFY NotifyFunction | OPTIONAL, | ||
IN VOID *NotifyContext | OPTIONAL, | ||
OUT EFI_EVENT * | Event | ||
) |
Creates an event.
Type | The type of event to create and its mode and attributes |
NotifyTpl | The task priority level of event notifications |
NotifyFunction | Pointer to the events notification function |
NotifyContext | Pointer to the notification functions context; corresponds to parameter "Context" in the notification function |
Event | Pointer to the newly created event if the call succeeds; undefined otherwise |
EFI_SUCCESS | The event structure was created |
EFI_INVALID_PARAMETER | One of the parameters has an invalid value |
EFI_OUT_OF_RESOURCES | The event could not be allocated |
EFI_STATUS EFIAPI CoreCreateEventEx | ( | IN UINT32 | Type, |
IN EFI_TPL | NotifyTpl, | ||
IN EFI_EVENT_NOTIFY NotifyFunction | OPTIONAL, | ||
IN CONST VOID *NotifyContext | OPTIONAL, | ||
IN CONST EFI_GUID *EventGroup | OPTIONAL, | ||
OUT EFI_EVENT * | Event | ||
) |
Creates an event in a group.
Type | The type of event to create and its mode and attributes |
NotifyTpl | The task priority level of event notifications |
NotifyFunction | Pointer to the events notification function |
NotifyContext | Pointer to the notification functions context; corresponds to parameter "Context" in the notification function |
EventGroup | GUID for EventGroup if NULL act the same as gBS->CreateEvent(). |
Event | Pointer to the newly created event if the call succeeds; undefined otherwise |
EFI_SUCCESS | The event structure was created |
EFI_INVALID_PARAMETER | One of the parameters has an invalid value |
EFI_OUT_OF_RESOURCES | The event could not be allocated |
EFI_STATUS EFIAPI CoreCreateEventInternal | ( | IN UINT32 | Type, |
IN EFI_TPL | NotifyTpl, | ||
IN EFI_EVENT_NOTIFY NotifyFunction | OPTIONAL, | ||
IN CONST VOID *NotifyContext | OPTIONAL, | ||
IN CONST EFI_GUID *EventGroup | OPTIONAL, | ||
OUT EFI_EVENT * | Event | ||
) |
Creates a general-purpose event structure
Type | The type of event to create and its mode and attributes |
NotifyTpl | The task priority level of event notifications |
NotifyFunction | Pointer to the events notification function |
NotifyContext | Pointer to the notification functions context; corresponds to parameter "Context" in the notification function |
EventGroup | GUID for EventGroup if NULL act the same as gBS->CreateEvent(). |
Event | Pointer to the newly created event if the call succeeds; undefined otherwise |
EFI_SUCCESS | The event structure was created |
EFI_INVALID_PARAMETER | One of the parameters has an invalid value |
EFI_OUT_OF_RESOURCES | The event could not be allocated |
EFI_STATUS CoreInitializeEventServices | ( | VOID | ) |
VOID CoreReleaseEventLock | ( | VOID | ) |
EFI_STATUS EFIAPI CoreSignalEvent | ( | IN EFI_EVENT | UserEvent | ) |
EFI_STATUS EFIAPI CoreWaitForEvent | ( | IN UINTN | NumberOfEvents, |
IN EFI_EVENT * | UserEvents, | ||
OUT UINTN * | UserIndex | ||
) |
Stops execution until an event is signaled.
NumberOfEvents | The number of events in the UserEvents array |
UserEvents | An array of EFI_EVENT |
UserIndex | Pointer to the index of the event which satisfied the wait condition |
EFI_SUCCESS | The event indicated by Index was signaled. |
EFI_INVALID_PARAMETER | The event indicated by Index has a notification function or Event was not a valid type |
EFI_UNSUPPORTED | The current TPL is not TPL_APPLICATION |
EFI_TPL gEfiCurrentTpl = TPL_APPLICATION |
UINTN gEventPending = 0 |
LIST_ENTRY gEventQueue[TPL_HIGH_LEVEL+1] |
EFI_LOCK gEventQueueLock = EFI_INITIALIZE_LOCK_VARIABLE (TPL_HIGH_LEVEL) |
LIST_ENTRY gEventSignalQueue = INITIALIZE_LIST_HEAD_VARIABLE (gEventSignalQueue) |