]> git.baikalelectronics.ru Git - kernel.git/commit
kset: add kset_create_and_add function
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 27 Sep 2007 21:48:53 +0000 (14:48 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Jan 2008 04:40:10 +0000 (20:40 -0800)
commit56af90a41a84035b65e4fb2d48bd7595dd8fe6cd
tree772f0a3eb78a3e1d3475d36356bbff715a907829
parentd896dfb0c6a0de85b9fd8169bdc2c6bc0928489c
kset: add kset_create_and_add function

Now ksets can be dynamically created on the fly, no static definitions
are required.  Thanks to Miklos for hints on how to make this work
better for the callers.

And thanks to Kay for finding some stupid bugs in my original version
and pointing out that we need to handle the fact that kobject's can have
a kset as a parent and to handle that properly in kobject_add().

Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/kobject.h
lib/kobject.c