[PATCH 0/5] powerpc: add device tree property update
Milton Miller
miltonm at bga.com
Sat Jan 21 03:53:19 EST 2006
I've spent the night doing some coding and have a new patch against
2.6.16-rc1. I want to test out a bit before sending.
The issue of what should we call this fs has been raised. Ideas so
far include:
promfs
offs
devicetreefs
devicetree
dtfs
From: Milton Miller <miltonm at bga.com>
Subject: [RFC][PATCH] promfs v0.2
Here is a patch for a mountable system, called promfs, that only
pins the device tree root when mounted. All other dentrys and
inodes are dynamic.
Both property files and device directorys hold a reference to the
device_node through u.generic_ip. The property is therefore stored
only in the dcache d_fsdata entry.
Lookup searches directorys by full name, properties, then directorys
by short name. We could add back by unit address.
arch/powerpc/kernel/prom.c | 326
+++++++++++++++++++++++++++++++++++++++++++++
include/asm-powerpc/prom.h | 6
2 files changed, 332 insertions
TODO:
See if it even compiles
Properly generate -p1 instead of -p3 patch
hook the (pSeries) device tree property and node add
-- prom_add_property should be ok, but the other interfaces
do not get inode numbers assigned
hook the (pSeries) device tree property removal
hook the (pSeries) device tree node removal
check if kill_anon_super is enough -- not pinning
get true refcount on directories?
show both name and fullname if different?
should add/remove become file operations?
More information about the Linuxppc64-dev
mailing list