utalloc.c revision 27f7c58306b55fe9e0cfd2934039be1729b505e9
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill/******************************************************************************
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * Module Name: utalloc - local memory allocation routines
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * $Revision: 1.162 $
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill *****************************************************************************/
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill/******************************************************************************
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * 1. Copyright Notice
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * Some or all of this work - Copyright (c) 1999 - 2006, Intel Corp.
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * All rights reserved.
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * 2.1. This is your license from Intel Corp. under its intellectual property
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * rights. You may have additional license terms from the party that provided
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * you this software, covering your right to use that party's intellectual
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * property rights.
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * copy of the source code appearing in this file ("Covered Code") an
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * irrevocable, perpetual, worldwide license under Intel's copyrights in the
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * base code distributed originally by Intel ("Original Intel Code") to copy,
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * make derivatives, distribute, use and display any portion of the Covered
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * Code in any form, with the right to sublicense such rights; and
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * license (with the right to sublicense), under only those claims of Intel
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * patents that are infringed by the Original Intel Code, to make, use, sell,
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * offer to sell, and import the Covered Code and derivative works thereof
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * solely to the minimum extent necessary to exercise the above copyright
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * license, and in no event shall the patent license extend to any additions
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * to or modifications of the Original Intel Code. No other license or right
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * is granted directly or by implication, estoppel or otherwise;
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * The above copyright and patent license is granted only if the following
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * conditions are met:
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * 3. Conditions
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * 3.1. Redistribution of Source with Rights to Further Distribute Source.
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * Redistribution of source code of any substantial portion of the Covered
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * Code or modification with rights to further distribute source must include
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * the above Copyright Notice, the above License, this list of Conditions,
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * and the following Disclaimer and Export Compliance provision. In addition,
2e0552679e3175533ade93573ac1229d20a8367bBryan Cantrill * Licensee must cause all Covered Code to which Licensee contributes to
#define __UTALLOC_C__
#include "acpi.h"
return (Status);
return (Status);
return (Status);
return (Status);
return (Status);
#ifdef ACPI_DBG_TRACK_ALLOCATIONS
return (Status);
return (Status);
return (AE_OK);
#ifdef ACPI_DBG_TRACK_ALLOCATIONS
return (AE_OK);
if (!Buffer)
return (AE_BAD_PARAMETER);
return (AE_OK);
return (AE_BAD_PARAMETER);
return (AE_OK);
case ACPI_NO_BUFFER:
case ACPI_ALLOCATE_BUFFER:
return (AE_NO_MEMORY);
return (AE_NO_MEMORY);
return (Status);
char *Module,
void *Allocation;
if (!Size)
if (!Allocation)
char *Module,
void *Allocation;
if (Allocation)
return (Allocation);