]> git.baikalelectronics.ru Git - kernel.git/commit
kobject: add kobject_init_and_add function
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Dec 2007 05:31:08 +0000 (21:31 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Jan 2008 04:40:10 +0000 (20:40 -0800)
commit4f86337934efc7b96cc766a89988149890f8032b
tree2038ed1677f55d3dafca6faac4a7155fb1e19166
parent751b7cf1c858cb0634e4fea7b8c6a5107c784860
kobject: add kobject_init_and_add function

Also add a kobject_init_and_add function which bundles up what a lot of
the current callers want to do all at once, and it properly handles the
memory usages, unlike kobject_register();

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