FreeBSD/sys/contrib/dev/acpica/components/utilities/utcache.c
/*******************************************************************************
 *
 * FUNCTION:    AcpiOsDeleteCache
 *
 * PARAMETERS:  Cache           - Handle to cache object
 *
 * RETURN:      Status
 *
 * DESCRIPTION: Free all objects within the requested cache and delete the
 *              cache object.
 *
 ******************************************************************************/
AcpiOsDeleteCache
PARAMETERS:  Cache           - Handle to cache object

Status

Free all objects within the requested cache and delete the
cache object.
AcpiOsDeleteCache PARAMETERS : Cache - Handle to cache object Status Free all objects within the requested cache and delete the cache object .
ACPI_STATUS
AcpiOsDeleteCache (
    ACPI_MEMORY_LIST        *Cache)
{
    ACPI_STATUS             Status;
    ACPI_FUNCTION_ENTRY ();
    Status = AcpiOsPurgeCache (Cache);
    if (ACPI_FAILURE (Status))
    {
        return (Status);
    }
    AcpiOsFree (Cache);
    return (AE_OK);
}
ACPI_STATUS AcpiOsDeleteCache ( ACPI_MEMORY_LIST * Cache ) { ACPI_STATUS Status ; ACPI_FUNCTION_ENTRY ( ) ; Status = AcpiOsPurgeCache ( Cache ) ; if ( ACPI_FAILURE ( Status ) ) { return ( Status ) ; } AcpiOsFree ( Cache ) ; return ( AE_OK ) ; }
FUNCTION:    AcpiOsDeleteCache
 PARAMETERS:  Cache           - Handle to cache object
FUNCTION : AcpiOsDeleteCache PARAMETERS : Cache - Handle to cache object
/* Purge all objects in the cache */ /* Now we can delete the cache object */