]> git.hungrycats.org Git - linux/commit
[PATCH] kobject: add add_hotplug_env_var()
authorRoland Dreier <roland@topspin.com>
Wed, 29 Sep 2004 10:24:36 +0000 (03:24 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 29 Sep 2004 10:24:36 +0000 (03:24 -0700)
commite2661e66605c57210ea9e689b51fc63ac001c8b3
tree6b505138a674f09229e20729a2d4cb7eebd543a8
parente0dff4c88eb8c627cb9c34ad3a2e0eafae4f0165
[PATCH] kobject: add add_hotplug_env_var()

Add a (non-inlined) add_hotplug_env_var() function to <linux/kobject.h>
and lib/kobject.c.  There's a lot of boilerplate code involved in
setting environment variables in a hotplug method, so we should have a
convenience function to consolidate it (and avoid subtle bugs).

Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
include/linux/kobject.h
lib/kobject_uevent.c