/** @file\r
- Memory Allocation Library Services\r
+ Memory Allocation Library Services\r
\r
- Copyright (c) 2006, Intel Corporation \r
- All rights reserved. This program and the accompanying materials \r
- are licensed and made available under the terms and conditions of the BSD License \r
- which accompanies this distribution. The full text of the license may be found at \r
- http://opensource.org/licenses/bsd-license.php \r
+ Copyright (c) 2006, Intel Corporation \r
+ All rights reserved. This program and the accompanying materials \r
+ are licensed and made available under the terms and conditions of the BSD License \r
+ which accompanies this distribution. The full text of the license may be found at \r
+ http://opensource.org/licenses/bsd-license.php \r
\r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
\r
- Module Name: MemoryAllocationLib.h\r
+ Module Name: MemoryAllocationLib.h\r
\r
**/\r
\r
#define __MEMORY_ALLOCATION_LIB_H__\r
\r
/**\r
- Allocates the number of 4KB pages specified by Pages of type EfiBootServicesData.\r
+ Allocates the number of 4KB pages specified by Pages of type EfiBootServicesData.\r
\r
- @param Pages The number of 4 KB pages to allocate.\r
+ @param Pages The number of 4 KB pages to allocate.\r
\r
- @return\r
- A pointer to the allocated buffer. The buffer returned is aligned on a 4KB boundary.\r
- If Pages is 0, then NULL is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. The buffer returned is aligned on a 4KB boundary.\r
+ If Pages is 0, then NULL is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Allocates the number of 4KB pages specified by Pages of type EfiRuntimeServicesData. \r
+ Allocates the number of 4KB pages specified by Pages of type EfiRuntimeServicesData. \r
\r
- @param Pages The number of 4 KB pages to allocate.\r
+ @param Pages The number of 4 KB pages to allocate.\r
\r
- @return\r
- A pointer to the allocated buffer. The buffer returned is aligned on a 4KB boundary.\r
- If Pages is 0, then NULL is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. The buffer returned is aligned on a 4KB boundary.\r
+ If Pages is 0, then NULL is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Allocates the number of 4KB pages specified by Pages of type EfiReservedMemoryType. \r
+ Allocates the number of 4KB pages specified by Pages of type EfiReservedMemoryType. \r
\r
- @param Pages The number of 4 KB pages to allocate.\r
+ @param Pages The number of 4 KB pages to allocate.\r
\r
- @return\r
- A pointer to the allocated buffer. The buffer returned is aligned on a 4KB boundary.\r
- If Pages is 0, then NULL is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. The buffer returned is aligned on a 4KB boundary.\r
+ If Pages is 0, then NULL is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Frees one or more 4KB pages that were previously allocated with \r
- one of the page allocation functions in the Memory Allocation Library.\r
+ Frees one or more 4KB pages that were previously allocated with \r
+ one of the page allocation functions in the Memory Allocation Library.\r
\r
- @param Buffer Pointer to the buffer of pages to free.\r
- @param Pages The number of 4 KB pages to free.\r
+ @param Buffer Pointer to the buffer of pages to free.\r
+ @param Pages The number of 4 KB pages to free.\r
\r
- None.\r
+ None.\r
\r
**/\r
VOID\r
;\r
\r
/**\r
- Allocates the number of 4KB pages specified by Pages of type EfiBootServicesData with an alignment specified by Alignment. \r
+ Allocates the number of 4KB pages specified by Pages of type EfiBootServicesData with an alignment specified by Alignment. \r
\r
- @param Pages The number of 4 KB pages to allocate.\r
- @param Alignment The requested alignment of the allocation. Must be a power of two.\r
- If Alignment is zero, then byte alignment is used.\r
+ @param Pages The number of 4 KB pages to allocate.\r
+ @param Alignment The requested alignment of the allocation. Must be a power of two.\r
+ If Alignment is zero, then byte alignment is used.\r
\r
- @return\r
- The allocated buffer is returned. If Pages is 0, then NULL is returned.\r
- If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ The allocated buffer is returned. If Pages is 0, then NULL is returned.\r
+ If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Allocates the number of 4KB pages specified by Pages of type EfiRuntimeServicesData with an alignment specified by Alignment. \r
+ Allocates the number of 4KB pages specified by Pages of type EfiRuntimeServicesData with an alignment specified by Alignment. \r
\r
- @param Pages The number of 4 KB pages to allocate.\r
- @param Alignment The requested alignment of the allocation. Must be a power of two.\r
- If Alignment is zero, then byte alignment is used.\r
+ @param Pages The number of 4 KB pages to allocate.\r
+ @param Alignment The requested alignment of the allocation. Must be a power of two.\r
+ If Alignment is zero, then byte alignment is used.\r
\r
- @return\r
- The allocated buffer is returned. If Pages is 0, then NULL is returned.\r
- If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ The allocated buffer is returned. If Pages is 0, then NULL is returned.\r
+ If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Allocates one or more 4KB pages of type EfiReservedMemoryType at a specified alignment.\r
+ Allocates one or more 4KB pages of type EfiReservedMemoryType at a specified alignment.\r
\r
- @param Pages The number of 4 KB pages to allocate.\r
- @param Alignment The requested alignment of the allocation. Must be a power of two.\r
- If Alignment is zero, then byte alignment is used.\r
+ @param Pages The number of 4 KB pages to allocate.\r
+ @param Alignment The requested alignment of the allocation. Must be a power of two.\r
+ If Alignment is zero, then byte alignment is used.\r
\r
- @return\r
- The allocated buffer is returned. If Pages is 0, then NULL is returned.\r
- If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ The allocated buffer is returned. If Pages is 0, then NULL is returned.\r
+ If there is not enough memory at the specified alignment remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Frees one or more 4KB pages that were previously allocated with \r
- one of the aligned page allocation functions in the Memory Allocation Library.\r
+ Frees one or more 4KB pages that were previously allocated with \r
+ one of the aligned page allocation functions in the Memory Allocation Library.\r
\r
- @param Buffer Pointer to the buffer of pages to free.\r
- @param Pages The number of 4 KB pages to free.\r
+ @param Buffer Pointer to the buffer of pages to free.\r
+ @param Pages The number of 4 KB pages to free.\r
\r
- None.\r
+ None.\r
\r
**/\r
VOID\r
;\r
\r
/**\r
- Allocates a buffer of type EfiBootServicesData.\r
+ Allocates a buffer of type EfiBootServicesData.\r
\r
- @param AllocationSize The number of bytes to allocate.\r
+ @param AllocationSize The number of bytes to allocate.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Allocates a buffer of type EfiRuntimeServicesData.\r
+ Allocates a buffer of type EfiRuntimeServicesData.\r
\r
- @param AllocationSize The number of bytes to allocate.\r
+ @param AllocationSize The number of bytes to allocate.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Allocates a buffer of type EfiReservedMemoryType.\r
+ Allocates a buffer of type EfiReservedMemoryType.\r
\r
- @param AllocationSize The number of bytes to allocate.\r
+ @param AllocationSize The number of bytes to allocate.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Allocates and zeros a buffer of type EfiBootServicesData.\r
+ Allocates and zeros a buffer of type EfiBootServicesData.\r
\r
- @param AllocationSize The number of bytes to allocate and zero.\r
+ @param AllocationSize The number of bytes to allocate and zero.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Allocates and zeros a buffer of type EfiRuntimeServicesData.\r
+ Allocates and zeros a buffer of type EfiRuntimeServicesData.\r
\r
- @param AllocationSize The number of bytes to allocate and zero.\r
+ @param AllocationSize The number of bytes to allocate and zero.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Allocates and zeros a buffer of type EfiReservedMemoryType.\r
+ Allocates and zeros a buffer of type EfiReservedMemoryType.\r
\r
- @param AllocationSize The number of bytes to allocate and zero.\r
+ @param AllocationSize The number of bytes to allocate and zero.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Copies a buffer to an allocated buffer of type EfiBootServicesData. \r
+ Copies a buffer to an allocated buffer of type EfiBootServicesData. \r
\r
- @param AllocationSize The number of bytes to allocate.\r
- @param Buffer The buffer to copy to the allocated buffer.\r
+ @param AllocationSize The number of bytes to allocate.\r
+ @param Buffer The buffer to copy to the allocated buffer.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Copies a buffer to an allocated buffer of type EfiRuntimeServicesData. \r
+ Copies a buffer to an allocated buffer of type EfiRuntimeServicesData. \r
\r
- @param AllocationSize The number of bytes to allocate.\r
- @param Buffer The buffer to copy to the allocated buffer.\r
+ @param AllocationSize The number of bytes to allocate.\r
+ @param Buffer The buffer to copy to the allocated buffer.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Copies a buffer to an allocated buffer of type EfiReservedMemoryType. \r
+ Copies a buffer to an allocated buffer of type EfiReservedMemoryType. \r
\r
- @param AllocationSize The number of bytes to allocate.\r
- @param Buffer The buffer to copy to the allocated buffer.\r
+ @param AllocationSize The number of bytes to allocate.\r
+ @param Buffer The buffer to copy to the allocated buffer.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Frees a buffer that was previously allocated with one of the pool allocation functions \r
- in the Memory Allocation Library.\r
+ Frees a buffer that was previously allocated with one of the pool allocation functions \r
+ in the Memory Allocation Library.\r
\r
- @param Buffer Pointer to the buffer to free.\r
+ @param Buffer Pointer to the buffer to free.\r
\r
- None.\r
+ None.\r
\r
**/\r
VOID\r
;\r
\r
/**\r
- Allocates a buffer of type EfiBootServicesData at a specified alignment.\r
+ Allocates a buffer of type EfiBootServicesData at a specified alignment.\r
\r
- @param AllocationSize The number of bytes to allocate.\r
- @param Alignment The requested alignment of the allocation. Must be a power of two.\r
- If Alignment is zero, then byte alignment is used.\r
+ @param AllocationSize The number of bytes to allocate.\r
+ @param Alignment The requested alignment of the allocation. Must be a power of two.\r
+ If Alignment is zero, then byte alignment is used.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Allocates a buffer of type EfiRuntimeServicesData at a specified alignment.\r
+ Allocates a buffer of type EfiRuntimeServicesData at a specified alignment.\r
\r
- @param AllocationSize The number of bytes to allocate.\r
- @param Alignment The requested alignment of the allocation. Must be a power of two.\r
- If Alignment is zero, then byte alignment is used.\r
+ @param AllocationSize The number of bytes to allocate.\r
+ @param Alignment The requested alignment of the allocation. Must be a power of two.\r
+ If Alignment is zero, then byte alignment is used.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Allocates a buffer of type EfiReservedMemoryType at a specified alignment.\r
+ Allocates a buffer of type EfiReservedMemoryType at a specified alignment.\r
\r
- @param AllocationSize The number of bytes to allocate.\r
- @param Alignment The requested alignment of the allocation. Must be a power of two.\r
- If Alignment is zero, then byte alignment is used.\r
+ @param AllocationSize The number of bytes to allocate.\r
+ @param Alignment The requested alignment of the allocation. Must be a power of two.\r
+ If Alignment is zero, then byte alignment is used.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Allocates and zeros a buffer of type EfiBootServicesData at a specified alignment.\r
+ Allocates and zeros a buffer of type EfiBootServicesData at a specified alignment.\r
\r
- @param AllocationSize The number of bytes to allocate.\r
- @param Alignment The requested alignment of the allocation. Must be a power of two.\r
- If Alignment is zero, then byte alignment is used.\r
+ @param AllocationSize The number of bytes to allocate.\r
+ @param Alignment The requested alignment of the allocation. Must be a power of two.\r
+ If Alignment is zero, then byte alignment is used.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Allocates and zeros a buffer of type EfiRuntimeServicesData at a specified alignment.\r
+ Allocates and zeros a buffer of type EfiRuntimeServicesData at a specified alignment.\r
\r
- @param AllocationSize The number of bytes to allocate.\r
- @param Alignment The requested alignment of the allocation. Must be a power of two.\r
- If Alignment is zero, then byte alignment is used.\r
+ @param AllocationSize The number of bytes to allocate.\r
+ @param Alignment The requested alignment of the allocation. Must be a power of two.\r
+ If Alignment is zero, then byte alignment is used.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Allocates and zeros a buffer of type EfiReservedMemoryType at a specified alignment.\r
+ Allocates and zeros a buffer of type EfiReservedMemoryType at a specified alignment.\r
\r
- @param AllocationSize The number of bytes to allocate.\r
- @param Alignment The requested alignment of the allocation. Must be a power of two.\r
- If Alignment is zero, then byte alignment is used.\r
+ @param AllocationSize The number of bytes to allocate.\r
+ @param Alignment The requested alignment of the allocation. Must be a power of two.\r
+ If Alignment is zero, then byte alignment is used.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Copies a buffer to an allocated buffer of type EfiBootServicesData at a specified alignment.\r
+ Copies a buffer to an allocated buffer of type EfiBootServicesData at a specified alignment.\r
\r
- @param AllocationSize The number of bytes to allocate.\r
- @param Buffer The buffer to copy to the allocated buffer.\r
- @param Alignment The requested alignment of the allocation. Must be a power of two.\r
- If Alignment is zero, then byte alignment is used.\r
+ @param AllocationSize The number of bytes to allocate.\r
+ @param Buffer The buffer to copy to the allocated buffer.\r
+ @param Alignment The requested alignment of the allocation. Must be a power of two.\r
+ If Alignment is zero, then byte alignment is used.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Copies a buffer to an allocated buffer of type EfiRuntimeServicesData at a specified alignment.\r
+ Copies a buffer to an allocated buffer of type EfiRuntimeServicesData at a specified alignment.\r
\r
- @param AllocationSize The number of bytes to allocate.\r
- @param Buffer The buffer to copy to the allocated buffer.\r
- @param Alignment The requested alignment of the allocation. Must be a power of two.\r
- If Alignment is zero, then byte alignment is used.\r
+ @param AllocationSize The number of bytes to allocate.\r
+ @param Buffer The buffer to copy to the allocated buffer.\r
+ @param Alignment The requested alignment of the allocation. Must be a power of two.\r
+ If Alignment is zero, then byte alignment is used.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Copies a buffer to an allocated buffer of type EfiReservedMemoryType at a specified alignment.\r
+ Copies a buffer to an allocated buffer of type EfiReservedMemoryType at a specified alignment.\r
\r
- @param AllocationSize The number of bytes to allocate.\r
- @param Buffer The buffer to copy to the allocated buffer.\r
- @param Alignment The requested alignment of the allocation. Must be a power of two.\r
- If Alignment is zero, then byte alignment is used.\r
+ @param AllocationSize The number of bytes to allocate.\r
+ @param Buffer The buffer to copy to the allocated buffer.\r
+ @param Alignment The requested alignment of the allocation. Must be a power of two.\r
+ If Alignment is zero, then byte alignment is used.\r
\r
- @return\r
- A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
- If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
+ @return\r
+ A pointer to the allocated buffer. If AllocationSize is 0, then a valid buffer of 0 size is returned.\r
+ If there is not enough memory remaining to satisfy the request, then NULL is returned.\r
\r
**/\r
VOID *\r
;\r
\r
/**\r
- Frees a buffer that was previously allocated with one of the aligned pool allocation functions \r
- in the Memory Allocation Library.\r
+ Frees a buffer that was previously allocated with one of the aligned pool allocation functions \r
+ in the Memory Allocation Library.\r
\r
- @param Buffer Pointer to the buffer to free.\r
+ @param Buffer Pointer to the buffer to free.\r
\r
- None.\r
+ None.\r
\r
**/\r
VOID\r