![Intel Extensible Firmware Interface Specification Download Page 71](http://html1.mh-extra.com/html/intel/extensible-firmware-interface/extensible-firmware-interface_specification_2073117071.webp)
Services
Version 1.02
12/12/00
53
3.2.4 AllocatePool()
Summary
Allocates pool memory.
Prototype
EFI_STATUS
AllocatePool (
IN EFI_MEMORY_TYPE
PoolType,
IN UINTN
Size,
OUT VOID
**Buffer
);
Parameters
PoolType
The type of pool to allocate. The only supported types are
EfiLoaderData,
EfiBootServicesData,
EfiRuntimeServicesData, EfiACPIReclaimMemory,
and
EfiACPIMemoryNVS
. Type
EFI_MEMORY_TYPE
is defined in
Section 3.2.1.
Size
The number of bytes to allocate from the pool.
Buffer
A pointer to a pointer to the allocated buffer if the call succeeds;
undefined otherwise.
Description
The
AllocatePool()
function allocates a memory region of
Size
bytes from memory of type
PoolType
and returns the address of the allocated memory in the location referenced by
Buffer
.
This function allocates pages from
EfiConventionalMemory
as needed to grow the requested
pool type. All allocations are eight-byte aligned.
The allocated pool memory is returned to the available pool with the
FreePool()
function.
Status Codes Returned
EFI_SUCCESS
The requested number of bytes was allocated.
EFI_OUT_OF_RESOURCES
The pool requested could not be allocated.
EFI_INVALID_PARAMETER
PoolType
was invalid.
Summary of Contents for Extensible Firmware Interface
Page 1: ...Extensible Firmware Interface Specification Version 1 02 December 12 2000...
Page 4: ...Extensible Firmware Interface Specification iv 12 12 00 Version 1 02...
Page 42: ...Extensible Firmware Interface Specification 24 12 01 00 Version 1 02...
Page 190: ...Extensible Firmware Interface Specification 172 12 12 00 Version 1 02...
Page 200: ...Extensible Firmware Interface Specification 182 12 12 00 Version 1 02...
Page 226: ...Extensible Firmware Interface Specification 208 12 12 00 Version 1 02...
Page 230: ...Extensible Firmware Interface Specification 212 12 12 00 Version 1 02...
Page 252: ...Extensible Firmware Interface Specification 234 12 12 00 Version 1 02...
Page 294: ...Extensible Firmware Interface Specification 276 12 12 00 Version 1 02...
Page 348: ...Extensible Firmware Interface Specification 330 12 01 00 Version 1 01...
Page 350: ...Extensible Firmware Interface Specification 332 12 12 00 Version 1 02...
Page 354: ...Extensible Firmware Interface Specification 336 12 12 00 Version 1 02...
Page 362: ...Extensible Firmware Interface Specification 344 12 12 00 Version 1 02...
Page 486: ...Extensible Firmware Interface Specification 468 12 12 00 Version 1 02...
Page 494: ...Extensible Firmware Interface Specification 476 12 12 00 Version 1 02...