[PATCH] add new OF device tree API (2.6.0-test3)
Nathan Lynch
nathanl at austin.ibm.com
Mon Sep 15 16:17:37 EST 2003
Hi-
This is an adaptation of the new Open Firmware device tree traversal API
from ppc32, originally written by Benjamin Herrenschmidt. This patch is
against 2.6.0-test3, but should apply ok to the latest 2.5 ameslab tree.
These functions are meant to be SMP-safe alternatives to the current set
of query/traversal routines (find_devices, find_type_devices, et al).
Some things which I plan to add within the next few days:
- "porting" arch/ppc64 to the new API
- implementation of reference counting
- support for addition and removal of device nodes
- a /proc-based mechanism for initiating node addition and removal from
userspace
Comments? I'm especially interested in feedback on whether a rwlock
approach would be sufficient for supporting updates, or whether I should
do something cool like RCU. :)
Nathan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: of_node_api.patch
Url: http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20030915/6aca6f81/attachment.txt
More information about the Linuxppc64-dev
mailing list