Openprotocolinformation(), Used to retrieve information about both – Intel Extensible Firmware Interface User Manual

Page 157

Advertising
background image

Services — Boot Services

Version 1.10

12/01/02

5-59

OpenProtocolInformation()

Summary

Retrieves the list of agents that currently have a protocol interface opened.

Prototype

typedef
EFI_STATUS
(EFIAPI *EFI_OPEN_PROTOCOL_INFORMATION) (

IN

EFI_HANDLE

Handle,

IN

EFI_GUID

*Protocol,

OUT EFI_OPEN_PROTOCOL_INFORMATION_ENTRY

**EntryBuffer,

OUT UINTN

*EntryCount

);

Parameters

Handle

The handle for the protocol interface that is being queried.

Protocol

The published unique identifier of the protocol. It is the callers
responsibility to pass in a valid GUID. See “Wired For
Management Baseline” for a description of valid GUID values.

EntryBuffer

A pointer to a buffer of open protocol information in the form of

EFI_OPEN_PROTOCOL_INFORMATION_ENTRY

structures.

See "Related Definitions" for the declaration of this type. The
buffer is allocated by this service, and it is the caller's
responsibility to free this buffer when the caller no longer
requires the buffer's contents.

EntryCount

A pointer to the number of entries in

EntryBuffer

.

Related Definitions

typedef struct {

EFI_HANDLE

AgentHandle;

EFI_HANDLE

ControllerHandle;

UINT32

Attributes;

UINT32

OpenCount;

} EFI_OPEN_PROTOCOL_INFORMATION_ENTRY;

Advertising