FreeBSD/sys/contrib/dev/acpica/components/utilities/uttrack.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiUtCreateList
 *
 * PARAMETERS:  CacheName       - Ascii name for the cache
 *              ObjectSize      - Size of each cached object
 *              ReturnCache     - Where the new cache object is returned
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Create a local memory list for tracking purposed
 *
 ******************************************************************************/
AcpiUtCreateList
PARAMETERS:  CacheName       - Ascii name for the cache
ObjectSize      - Size of each cached object
ReturnCache     - Where the new cache object is returned

Status

Create a local memory list for tracking purposed
AcpiUtCreateList PARAMETERS : CacheName - Ascii name for the cache ObjectSize - Size of each cached object ReturnCache - Where the new cache object is returned Status Create a local memory list for tracking purposed
ACPI_STATUS
AcpiUtCreateList (
    const char              *ListName,
    UINT16                  ObjectSize,
    ACPI_MEMORY_LIST        **ReturnCache)
{
    ACPI_MEMORY_LIST        *Cache;
    Cache = AcpiOsAllocate (sizeof (ACPI_MEMORY_LIST));
    if (!Cache)
    {
        return (AE_NO_MEMORY);
    }
    memset (Cache, 0, sizeof (ACPI_MEMORY_LIST));
    Cache->ListName = ListName;
    Cache->ObjectSize = ObjectSize;
    *ReturnCache = Cache;
    return (AE_OK);
}
ACPI_STATUS AcpiUtCreateList ( const char * ListName , UINT16 ObjectSize , ACPI_MEMORY_LIST * * ReturnCache ) { ACPI_MEMORY_LIST * Cache ; Cache = AcpiOsAllocate ( sizeof ( ACPI_MEMORY_LIST ) ) ; if ( ! Cache ) { return ( AE_NO_MEMORY ) ; } memset ( Cache , 0 , sizeof ( ACPI_MEMORY_LIST ) ) ; Cache -> ListName = ListName ; Cache -> ObjectSize = ObjectSize ; * ReturnCache = Cache ; return ( AE_OK ) ; }
FUNCTION:    AcpiUtCreateList
 PARAMETERS:  CacheName       - Ascii name for the cache
              ObjectSize      - Size of each cached object
              ReturnCache     - Where the new cache object is returned
FUNCTION : AcpiUtCreateList PARAMETERS : CacheName - Ascii name for the cache ObjectSize - Size of each cached object ReturnCache - Where the new cache object is returned