CreateEvent returns an EFI_STATUS. It expects the OUT parameter, a pointer to an EFI_EVENT, to be non-NULL. A null pointer results in EFI_INVALID_PARAMETER. If the CreateEvent is successful, then `event` points to the newly created event. It's the caller's responsibility to pass a pointer to valid writable memory.
On Mon, Oct 3, 2022 at 8:08 AM Ayush Singh <ayushdevel1...@gmail.com> wrote: > > Hello everyone, > > I wanted to ask if a NULL pointer can be returned as a valid event from > `EFI_BOOT_SERVICES.CreateEvent()` or `EFI_BOOT_SERVICES.CreateEventEx()`? Or > does the specification state that a valid event pointer has to be non-NULL? > > Yours Sincerely, > Ayush Singh > -- -Dionna Glaze, PhD (she/her) -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#94676): https://edk2.groups.io/g/devel/message/94676 Mute This Topic: https://groups.io/mt/94092613/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-