Allocation
const size_t size = _size + sizeof(Allocation);
Allocation* allocation = (Allocation*)pointer;
Allocation* allocation = (((Allocation*)_pointer) - 1);
void *Allocation;
Allocation = AcpiOsAllocate (Size);
if (Allocation)
memset (Allocation, 0, Size);
return (Allocation);
ACPI_DEBUG_MEM_BLOCK *Allocation);
ACPI_DEBUG_MEM_BLOCK *Allocation;
Allocation = AcpiOsAllocate (Size + sizeof (ACPI_DEBUG_MEM_HEADER));
if (!Allocation)
Allocation, Size, ACPI_MEM_MALLOC, Component, Module, Line);
AcpiOsFree (Allocation);
return ((void *) &Allocation->UserSpace);
ACPI_DEBUG_MEM_BLOCK *Allocation;
Allocation = AcpiOsAllocateZeroed (
if (!Allocation)
Status = AcpiUtTrackAllocation (Allocation, Size,
AcpiOsFree (Allocation);
return ((void *) &Allocation->UserSpace);
void *Allocation,
ACPI_FUNCTION_TRACE_PTR (UtFree, Allocation);
if (NULL == Allocation)
(((char *) Allocation) - sizeof (ACPI_DEBUG_MEM_HEADER)));
Allocation, DebugBlock));
ACPI_DEBUG_MEM_BLOCK *Allocation)
while (Element > Allocation)
if (Element == Allocation)
ACPI_DEBUG_MEM_BLOCK *Allocation,
ACPI_FUNCTION_TRACE_PTR (UtTrackAllocation, Allocation);
Element = AcpiUtFindAllocation (Allocation);
if (Element == Allocation)
Allocation));
Allocation->Size = (UINT32) Size;
Allocation->AllocType = AllocType;
Allocation->Component = Component;
Allocation->Line = Line;
AcpiUtSafeStrncpy (Allocation->Module, (char *) Module, ACPI_MAX_MODULE_NAME);
Allocation;
Allocation->Next = MemList->ListHead;
Allocation->Previous = NULL;
MemList->ListHead = Allocation;
Allocation->Next = Element->Next;
Allocation->Previous = Element;
(Element->Next)->Previous = Allocation;
Element->Next = Allocation;
ACPI_DEBUG_MEM_BLOCK *Allocation,
if (Allocation->Previous)
(Allocation->Previous)->Next = Allocation->Next;
MemList->ListHead = Allocation->Next;
if (Allocation->Next)
(Allocation->Next)->Previous = Allocation->Previous;
&Allocation->UserSpace, Allocation->Size));
memset (&Allocation->UserSpace, 0xEA, Allocation->Size);