[PATCH] of_add_property and property list locking (2.5)
Benjamin Herrenschmidt
benh at kernel.crashing.org
Tue Nov 25 16:48:42 EST 2003
On Tue, 2003-11-25 at 16:06, Nathan Lynch wrote:
> Hi-
>
> We need the ability to add custom properties to OF device nodes in
> certain situations (e.g. cpu hotplug). And if we're going to be adding
> properties, we need some sort of locking for struct device_node's
> properties list. I've also added a public proc_device_tree_add_property
> interface to fs/proc/proc_devtree.c to avoid duplication of code.
>
> The natural thing to follow this would be deprecating get_property in
> favor of a function (of_get_property?) that takes the new lock when
> searching the property list.
Hrm... how do you protect the property content against deletion ?
Ben.
** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc64-dev
mailing list