driver core: Introduce device_move(): move a device to a new parent.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Mon, 20 Nov 2006 16:07:51 +0000 (17:07 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Dec 2006 22:52:01 +0000 (14:52 -0800)
commit8a82472f86bf693b8e91ed56c9ca4f62fbbdcfa3
tree79d148ee548f4b57e6f5a4a69cf6cdb81e7a1bf2
parentaf9e0765362151b27372c14d9d6dc417184182d3
driver core: Introduce device_move(): move a device to a new parent.

Provide a function device_move() to move a device to a new parent device. Add
auxilliary functions kobject_move() and sysfs_move_dir().
kobject_move() generates a new uevent of type KOBJ_MOVE, containing the
previous path (DEVPATH_OLD) in addition to the usual values. For this, a new
interface kobject_uevent_env() is created that allows to add further
environmental data to the uevent at the kobject layer.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c
fs/sysfs/dir.c
include/linux/device.h
include/linux/kobject.h
include/linux/sysfs.h
lib/kobject.c
lib/kobject_uevent.c