summaryrefslogtreecommitdiffstats
path: root/samples/kobject
Commit message (Collapse)AuthorAgeFilesLines
* kobject: should use kobject_put() in kset-exampleLi Zefan2008-07-211-1/+1
| | | | | | | | | We should call kobject_put() instead of kfree() if kobject_init_and_add() returns an error, shouldn't we? Don't set up a bad example ;) Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* kobject: add sample code for how to use ksets/ktypes/kobjectsGreg Kroah-Hartman2008-01-242-1/+279
| | | | | | | | | This is a more complex example showing how to create a kset and a ktype and some default attributes for a group of kobjects. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* kobject: add sample code for how to use kobjects in a simple manner.Greg Kroah-Hartman2008-01-242-0/+138
This is a simple kobject module, showing how to use kobj_attributes in basic and more complex ways. Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
OpenPOWER on IntegriCloud