1 /*******************************************************************************
3 * Module Name: utdelete - object deletion and reference count utilities
5 ******************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2015, Intel Corp.
12 * All rights reserved.
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
72 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
114 *****************************************************************************/
117 #include "accommon.h"
118 #include "acinterp.h"
119 #include "acnamesp.h"
120 #include "acevents.h"
123 #define _COMPONENT ACPI_UTILITIES
124 ACPI_MODULE_NAME ("utdelete")
126 /* Local prototypes */
129 AcpiUtDeleteInternalObj (
130 ACPI_OPERAND_OBJECT
*Object
);
133 AcpiUtUpdateRefCount (
134 ACPI_OPERAND_OBJECT
*Object
,
138 /*******************************************************************************
140 * FUNCTION: AcpiUtDeleteInternalObj
142 * PARAMETERS: Object - Object to be deleted
146 * DESCRIPTION: Low level object deletion, after reference counts have been
147 * updated (All reference counts, including sub-objects!)
149 ******************************************************************************/
152 AcpiUtDeleteInternalObj (
153 ACPI_OPERAND_OBJECT
*Object
)
155 void *ObjPointer
= NULL
;
156 ACPI_OPERAND_OBJECT
*HandlerDesc
;
157 ACPI_OPERAND_OBJECT
*SecondDesc
;
158 ACPI_OPERAND_OBJECT
*NextDesc
;
159 ACPI_OPERAND_OBJECT
*StartDesc
;
160 ACPI_OPERAND_OBJECT
**LastObjPtr
;
163 ACPI_FUNCTION_TRACE_PTR (UtDeleteInternalObj
, Object
);
172 * Must delete or free any pointers within the object that are not
173 * actual ACPI objects (for example, a raw buffer pointer).
175 switch (Object
->Common
.Type
)
177 case ACPI_TYPE_STRING
:
179 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
, "**** String %p, ptr %p\n",
180 Object
, Object
->String
.Pointer
));
182 /* Free the actual string buffer */
184 if (!(Object
->Common
.Flags
& AOPOBJ_STATIC_POINTER
))
186 /* But only if it is NOT a pointer into an ACPI table */
188 ObjPointer
= Object
->String
.Pointer
;
192 case ACPI_TYPE_BUFFER
:
194 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
, "**** Buffer %p, ptr %p\n",
195 Object
, Object
->Buffer
.Pointer
));
197 /* Free the actual buffer */
199 if (!(Object
->Common
.Flags
& AOPOBJ_STATIC_POINTER
))
201 /* But only if it is NOT a pointer into an ACPI table */
203 ObjPointer
= Object
->Buffer
.Pointer
;
207 case ACPI_TYPE_PACKAGE
:
209 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
, " **** Package of count %X\n",
210 Object
->Package
.Count
));
213 * Elements of the package are not handled here, they are deleted
217 /* Free the (variable length) element pointer array */
219 ObjPointer
= Object
->Package
.Elements
;
223 * These objects have a possible list of notify handlers.
224 * Device object also may have a GPE block.
226 case ACPI_TYPE_DEVICE
:
228 if (Object
->Device
.GpeBlock
)
230 (void) AcpiEvDeleteGpeBlock (Object
->Device
.GpeBlock
);
233 /*lint -fallthrough */
235 case ACPI_TYPE_PROCESSOR
:
236 case ACPI_TYPE_THERMAL
:
238 /* Walk the address handler list for this object */
240 HandlerDesc
= Object
->CommonNotify
.Handler
;
243 NextDesc
= HandlerDesc
->AddressSpace
.Next
;
244 AcpiUtRemoveReference (HandlerDesc
);
245 HandlerDesc
= NextDesc
;
249 case ACPI_TYPE_MUTEX
:
251 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
,
252 "***** Mutex %p, OS Mutex %p\n",
253 Object
, Object
->Mutex
.OsMutex
));
255 if (Object
== AcpiGbl_GlobalLockMutex
)
257 /* Global Lock has extra semaphore */
259 (void) AcpiOsDeleteSemaphore (AcpiGbl_GlobalLockSemaphore
);
260 AcpiGbl_GlobalLockSemaphore
= NULL
;
262 AcpiOsDeleteMutex (Object
->Mutex
.OsMutex
);
263 AcpiGbl_GlobalLockMutex
= NULL
;
267 AcpiExUnlinkMutex (Object
);
268 AcpiOsDeleteMutex (Object
->Mutex
.OsMutex
);
272 case ACPI_TYPE_EVENT
:
274 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
,
275 "***** Event %p, OS Semaphore %p\n",
276 Object
, Object
->Event
.OsSemaphore
));
278 (void) AcpiOsDeleteSemaphore (Object
->Event
.OsSemaphore
);
279 Object
->Event
.OsSemaphore
= NULL
;
282 case ACPI_TYPE_METHOD
:
284 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
,
285 "***** Method %p\n", Object
));
287 /* Delete the method mutex if it exists */
289 if (Object
->Method
.Mutex
)
291 AcpiOsDeleteMutex (Object
->Method
.Mutex
->Mutex
.OsMutex
);
292 AcpiUtDeleteObjectDesc (Object
->Method
.Mutex
);
293 Object
->Method
.Mutex
= NULL
;
297 case ACPI_TYPE_REGION
:
299 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
,
300 "***** Region %p\n", Object
));
303 * Update AddressRange list. However, only permanent regions
304 * are installed in this list. (Not created within a method)
306 if (!(Object
->Region
.Node
->Flags
& ANOBJ_TEMPORARY
))
308 AcpiUtRemoveAddressRange (Object
->Region
.SpaceId
,
309 Object
->Region
.Node
);
312 SecondDesc
= AcpiNsGetSecondaryObject (Object
);
316 * Free the RegionContext if and only if the handler is one of the
317 * default handlers -- and therefore, we created the context object
318 * locally, it was not created by an external caller.
320 HandlerDesc
= Object
->Region
.Handler
;
323 NextDesc
= HandlerDesc
->AddressSpace
.RegionList
;
324 StartDesc
= NextDesc
;
325 LastObjPtr
= &HandlerDesc
->AddressSpace
.RegionList
;
327 /* Remove the region object from the handler list */
331 if (NextDesc
== Object
)
333 *LastObjPtr
= NextDesc
->Region
.Next
;
337 /* Walk the linked list of handlers */
339 LastObjPtr
= &NextDesc
->Region
.Next
;
340 NextDesc
= NextDesc
->Region
.Next
;
342 /* Prevent infinite loop if list is corrupted */
344 if (NextDesc
== StartDesc
)
346 ACPI_ERROR ((AE_INFO
,
347 "Circular region list in address handler object %p",
353 if (HandlerDesc
->AddressSpace
.HandlerFlags
&
354 ACPI_ADDR_HANDLER_DEFAULT_INSTALLED
)
356 /* Deactivate region and free region context */
358 if (HandlerDesc
->AddressSpace
.Setup
)
360 (void) HandlerDesc
->AddressSpace
.Setup (Object
,
361 ACPI_REGION_DEACTIVATE
,
362 HandlerDesc
->AddressSpace
.Context
,
363 &SecondDesc
->Extra
.RegionContext
);
367 AcpiUtRemoveReference (HandlerDesc
);
370 /* Now we can free the Extra object */
372 AcpiUtDeleteObjectDesc (SecondDesc
);
376 case ACPI_TYPE_BUFFER_FIELD
:
378 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
,
379 "***** Buffer Field %p\n", Object
));
381 SecondDesc
= AcpiNsGetSecondaryObject (Object
);
384 AcpiUtDeleteObjectDesc (SecondDesc
);
388 case ACPI_TYPE_LOCAL_BANK_FIELD
:
390 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
,
391 "***** Bank Field %p\n", Object
));
393 SecondDesc
= AcpiNsGetSecondaryObject (Object
);
396 AcpiUtDeleteObjectDesc (SecondDesc
);
405 /* Free any allocated memory (pointer within the object) found above */
409 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
, "Deleting Object Subptr %p\n",
411 ACPI_FREE (ObjPointer
);
414 /* Now the object can be safely deleted */
416 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
, "Deleting Object %p [%s]\n",
417 Object
, AcpiUtGetObjectTypeName (Object
)));
419 AcpiUtDeleteObjectDesc (Object
);
424 /*******************************************************************************
426 * FUNCTION: AcpiUtDeleteInternalObjectList
428 * PARAMETERS: ObjList - Pointer to the list to be deleted
432 * DESCRIPTION: This function deletes an internal object list, including both
433 * simple objects and package objects
435 ******************************************************************************/
438 AcpiUtDeleteInternalObjectList (
439 ACPI_OPERAND_OBJECT
**ObjList
)
441 ACPI_OPERAND_OBJECT
**InternalObj
;
444 ACPI_FUNCTION_ENTRY ();
447 /* Walk the null-terminated internal list */
449 for (InternalObj
= ObjList
; *InternalObj
; InternalObj
++)
451 AcpiUtRemoveReference (*InternalObj
);
454 /* Free the combined parameter pointer list and object array */
461 /*******************************************************************************
463 * FUNCTION: AcpiUtUpdateRefCount
465 * PARAMETERS: Object - Object whose ref count is to be updated
466 * Action - What to do (REF_INCREMENT or REF_DECREMENT)
468 * RETURN: None. Sets new reference count within the object
470 * DESCRIPTION: Modify the reference count for an internal acpi object
472 ******************************************************************************/
475 AcpiUtUpdateRefCount (
476 ACPI_OPERAND_OBJECT
*Object
,
479 UINT16 OriginalCount
;
481 ACPI_CPU_FLAGS LockFlags
;
484 ACPI_FUNCTION_NAME (UtUpdateRefCount
);
493 * Always get the reference count lock. Note: Interpreter and/or
494 * Namespace is not always locked when this function is called.
496 LockFlags
= AcpiOsAcquireLock (AcpiGbl_ReferenceCountLock
);
497 OriginalCount
= Object
->Common
.ReferenceCount
;
499 /* Perform the reference count action (increment, decrement) */
505 NewCount
= OriginalCount
+ 1;
506 Object
->Common
.ReferenceCount
= NewCount
;
507 AcpiOsReleaseLock (AcpiGbl_ReferenceCountLock
, LockFlags
);
509 /* The current reference count should never be zero here */
513 ACPI_WARNING ((AE_INFO
,
514 "Obj %p, Reference Count was zero before increment\n",
518 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
,
519 "Obj %p Type %.2X Refs %.2X [Incremented]\n",
520 Object
, Object
->Common
.Type
, NewCount
));
525 /* The current reference count must be non-zero */
529 NewCount
= OriginalCount
- 1;
530 Object
->Common
.ReferenceCount
= NewCount
;
533 AcpiOsReleaseLock (AcpiGbl_ReferenceCountLock
, LockFlags
);
537 ACPI_WARNING ((AE_INFO
,
538 "Obj %p, Reference Count is already zero, cannot decrement\n",
542 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
,
543 "Obj %p Type %.2X Refs %.2X [Decremented]\n",
544 Object
, Object
->Common
.Type
, NewCount
));
546 /* Actually delete the object on a reference count of zero */
550 AcpiUtDeleteInternalObj (Object
);
556 AcpiOsReleaseLock (AcpiGbl_ReferenceCountLock
, LockFlags
);
557 ACPI_ERROR ((AE_INFO
, "Unknown Reference Count action (0x%X)",
563 * Sanity check the reference count, for debug purposes only.
564 * (A deleted object will have a huge reference count)
566 if (NewCount
> ACPI_MAX_REFERENCE_COUNT
)
568 ACPI_WARNING ((AE_INFO
,
569 "Large Reference Count (0x%X) in object %p, Type=0x%.2X",
570 NewCount
, Object
, Object
->Common
.Type
));
575 /*******************************************************************************
577 * FUNCTION: AcpiUtUpdateObjectReference
579 * PARAMETERS: Object - Increment ref count for this object
580 * and all sub-objects
581 * Action - Either REF_INCREMENT or REF_DECREMENT
585 * DESCRIPTION: Increment the object reference count
587 * Object references are incremented when:
588 * 1) An object is attached to a Node (namespace object)
589 * 2) An object is copied (all subobjects must be incremented)
591 * Object references are decremented when:
592 * 1) An object is detached from an Node
594 ******************************************************************************/
597 AcpiUtUpdateObjectReference (
598 ACPI_OPERAND_OBJECT
*Object
,
601 ACPI_STATUS Status
= AE_OK
;
602 ACPI_GENERIC_STATE
*StateList
= NULL
;
603 ACPI_OPERAND_OBJECT
*NextObject
= NULL
;
604 ACPI_OPERAND_OBJECT
*PrevObject
;
605 ACPI_GENERIC_STATE
*State
;
609 ACPI_FUNCTION_NAME (UtUpdateObjectReference
);
614 /* Make sure that this isn't a namespace handle */
616 if (ACPI_GET_DESCRIPTOR_TYPE (Object
) == ACPI_DESC_TYPE_NAMED
)
618 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
,
619 "Object %p is NS handle\n", Object
));
624 * All sub-objects must have their reference count incremented also.
625 * Different object types have different subobjects.
627 switch (Object
->Common
.Type
)
629 case ACPI_TYPE_DEVICE
:
630 case ACPI_TYPE_PROCESSOR
:
631 case ACPI_TYPE_POWER
:
632 case ACPI_TYPE_THERMAL
:
634 * Update the notify objects for these types (if present)
635 * Two lists, system and device notify handlers.
637 for (i
= 0; i
< ACPI_NUM_NOTIFY_TYPES
; i
++)
639 PrevObject
= Object
->CommonNotify
.NotifyList
[i
];
642 NextObject
= PrevObject
->Notify
.Next
[i
];
643 AcpiUtUpdateRefCount (PrevObject
, Action
);
644 PrevObject
= NextObject
;
649 case ACPI_TYPE_PACKAGE
:
651 * We must update all the sub-objects of the package,
652 * each of whom may have their own sub-objects.
654 for (i
= 0; i
< Object
->Package
.Count
; i
++)
657 * Null package elements are legal and can be simply
660 NextObject
= Object
->Package
.Elements
[i
];
666 switch (NextObject
->Common
.Type
)
668 case ACPI_TYPE_INTEGER
:
669 case ACPI_TYPE_STRING
:
670 case ACPI_TYPE_BUFFER
:
672 * For these very simple sub-objects, we can just
673 * update the reference count here and continue.
674 * Greatly increases performance of this operation.
676 AcpiUtUpdateRefCount (NextObject
, Action
);
681 * For complex sub-objects, push them onto the stack
682 * for later processing (this eliminates recursion.)
684 Status
= AcpiUtCreateUpdateStateAndPush (
685 NextObject
, Action
, &StateList
);
686 if (ACPI_FAILURE (Status
))
696 case ACPI_TYPE_BUFFER_FIELD
:
698 NextObject
= Object
->BufferField
.BufferObj
;
701 case ACPI_TYPE_LOCAL_REGION_FIELD
:
703 NextObject
= Object
->Field
.RegionObj
;
706 case ACPI_TYPE_LOCAL_BANK_FIELD
:
708 NextObject
= Object
->BankField
.BankObj
;
709 Status
= AcpiUtCreateUpdateStateAndPush (
710 Object
->BankField
.RegionObj
, Action
, &StateList
);
711 if (ACPI_FAILURE (Status
))
717 case ACPI_TYPE_LOCAL_INDEX_FIELD
:
719 NextObject
= Object
->IndexField
.IndexObj
;
720 Status
= AcpiUtCreateUpdateStateAndPush (
721 Object
->IndexField
.DataObj
, Action
, &StateList
);
722 if (ACPI_FAILURE (Status
))
728 case ACPI_TYPE_LOCAL_REFERENCE
:
730 * The target of an Index (a package, string, or buffer) or a named
731 * reference must track changes to the ref count of the index or
734 if ((Object
->Reference
.Class
== ACPI_REFCLASS_INDEX
) ||
735 (Object
->Reference
.Class
== ACPI_REFCLASS_NAME
))
737 NextObject
= Object
->Reference
.Object
;
741 case ACPI_TYPE_REGION
:
744 break; /* No subobjects for all other types */
748 * Now we can update the count in the main object. This can only
749 * happen after we update the sub-objects in case this causes the
750 * main object to be deleted.
752 AcpiUtUpdateRefCount (Object
, Action
);
755 /* Move on to the next object to be updated */
764 State
= AcpiUtPopGenericState (&StateList
);
765 Object
= State
->Update
.Object
;
766 AcpiUtDeleteGenericState (State
);
775 ACPI_EXCEPTION ((AE_INFO
, Status
,
776 "Could not update object reference count"));
778 /* Free any stacked Update State objects */
782 State
= AcpiUtPopGenericState (&StateList
);
783 AcpiUtDeleteGenericState (State
);
790 /*******************************************************************************
792 * FUNCTION: AcpiUtAddReference
794 * PARAMETERS: Object - Object whose reference count is to be
799 * DESCRIPTION: Add one reference to an ACPI object
801 ******************************************************************************/
805 ACPI_OPERAND_OBJECT
*Object
)
808 ACPI_FUNCTION_NAME (UtAddReference
);
811 /* Ensure that we have a valid object */
813 if (!AcpiUtValidInternalObject (Object
))
818 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
,
819 "Obj %p Current Refs=%X [To Be Incremented]\n",
820 Object
, Object
->Common
.ReferenceCount
));
822 /* Increment the reference count */
824 (void) AcpiUtUpdateObjectReference (Object
, REF_INCREMENT
);
829 /*******************************************************************************
831 * FUNCTION: AcpiUtRemoveReference
833 * PARAMETERS: Object - Object whose ref count will be decremented
837 * DESCRIPTION: Decrement the reference count of an ACPI internal object
839 ******************************************************************************/
842 AcpiUtRemoveReference (
843 ACPI_OPERAND_OBJECT
*Object
)
846 ACPI_FUNCTION_NAME (UtRemoveReference
);
850 * Allow a NULL pointer to be passed in, just ignore it. This saves
851 * each caller from having to check. Also, ignore NS nodes.
854 (ACPI_GET_DESCRIPTOR_TYPE (Object
) == ACPI_DESC_TYPE_NAMED
))
860 /* Ensure that we have a valid object */
862 if (!AcpiUtValidInternalObject (Object
))
867 ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS
,
868 "Obj %p Current Refs=%X [To Be Decremented]\n",
869 Object
, Object
->Common
.ReferenceCount
));
872 * Decrement the reference count, and only actually delete the object
873 * if the reference count becomes 0. (Must also decrement the ref count
874 * of all subobjects!)
876 (void) AcpiUtUpdateObjectReference (Object
, REF_DECREMENT
);