Efi_pci_io_protocol.freebuffer(), Freebuffer(), Func – Intel Extensible Firmware Interface User Manual

Page 501: Efi_pci_io_protocol.freebuffer() summary, Prototype, Parameters, Description, Status codes returned

Advertising
background image

Protocols

— PCI Bus Support

Version 1.10

12/01/02

12-83

EFI_PCI_IO_PROTOCOL.FreeBuffer()

Summary

Frees memory that was allocated with

AllocateBuffer()

.

Prototype

typedef
EFI_STATUS
(EFIAPI *EFI_PCI_IO_PROTOCOL_FREE_BUFFER) (
IN EFI_PCI_IO_PROTOCOL

*This,

IN UINTN

Pages,

IN VOID

*HostAddress

);

Parameters

This

A pointer to the

EFI_PCI_IO_PROTOCOL

instance. Type

EFI_PCI_IO_PROTOCOL

is defined in Section 12.4.

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()

.

Advertising