[PATCH] keep track of proc entries in device nodes (2.5)

Nathan Lynch nathanl at austin.ibm.com
Tue Oct 7 17:14:13 EST 2003


Hi-

The attached patches add fields to struct device_node for recording the
procfs entries created in /proc/device-tree.  This change is intended to
support the removal of the corresponding proc entries when we remove a
device node at runtime.  Recording the entries in the device nodes has
to be done in an indirect way because ppc cannot add fields to its
device_node without breaking compatibility with BootX.

Also, the patch changes add_node() to proc_device_tree_add_node() and
makes it extern, so that we can use it when dynamically adding device
nodes.  The function in its current form will not create the name and
address symbolic links for dynamically added nodes, but I view that as
an acceptable shortcoming for now.

Patches are against latest ameslab 2.5 bk, and separated into
arch-independent and ppc64-specific pieces.

Nathan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc64_devnode.patch
Url: http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20031007/830086be/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: proc_devtree.patch
Url: http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20031007/830086be/attachment-0001.txt 


More information about the Linuxppc64-dev mailing list