[PATCH] Open Firmware device tree virtual filesystem

David Miller davem at davemloft.net
Tue Jan 2 17:07:49 EST 2007


From: Segher Boessenkool <segher at kernel.crashing.org>
Date: Tue, 2 Jan 2007 22:37:32 +0100

> Leaving aside the issue of in-memory or not, I don't think
> it is realistic to think any completely common implementation
> will work for this -- it might for current SPARC+PowerPC+OLPC,
> but more stuff will be added over time...

I see nothing supporting this IMHO bogus claim.

If you can traverse the device tree using OFW calls, you
can do it to build the in-kernel copy of the tree too.

How the tree is populated, etc., is not an issue for the
common code, for sure.  Each platform does that in whatever
way is appropriate.

But the tree traversal, getting property values, etc. is indeed
a task for the common code and that is exactly what Ben is
suggesting.



More information about the Devel mailing list