Re: [PATCH 0/2] ACPICA: add postorder namespace walk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 17 July 2009 11:27:16 am Bjorn Helgaas wrote:
> AcpiWalkNamespace() only supports preorder traversal of the namespace.  
> This visits a node before any of its children, so it works well for
> adding new devices.  However, when removing devices, we need a postorder
> traversal so we can remove children before the parents.
> 
> These patches add a new AcpiWalkNamespace2() interface that takes two
> callback arguments: one for preorder traversal and another for postorder.
> These patches don't change the behavior of AcpiWalkNamespace().
> 
> Note that the existing preorder AcpiWalkNamespace() never actually visits
> the starting node.  Therefore, we skip it in postorder also.

Hi Bob,

Any feedback on these patches, or on the question of whether
AcpiWalkNamespace() should visit the starting node?  (I expect
that the starting node question will be most easily resolved
by a documentation update.)

Bjorn


--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux