Efi_pci_root_bridge_io_protocol.freebuffer(), Freebuffer(), Func – Intel Extensible Firmware Interface User Manual
Page 451: Prototype, Parameters, Description, Status codes returned

Protocols
— PCI Bus Support
Version 1.10
12/01/02
12-33
EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL.FreeBuffer()
Summary
Frees memory that was allocated with
Prototype
typedef
EFI_STATUS
(EFIAPI *EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_FREE_BUFFER) (
IN EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL
*This,
IN UINTN
Pages,
IN VOID
*HostAddress
);
Parameters
This
A pointer to the
EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL
Type
EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL
is defined in
Section 12.2.
Pages
The number of pages to free.
HostAddress
The base system memory address of the allocated range.
Description
The
FreeBuffer()
function frees memory that was allocated with
AllocateBuffer()
.
Status Codes Returned
EFI_SUCCESS
The requested memory pages were freed.
EFI_INVALID_PARAMETER
The memory range specified by
HostAddress
and
Pages
was not allocated with
AllocateBuffer(
)
.