Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | kobject: should use kobject_put() in kset-example | Li Zefan | 2008-07-21 | 1 | -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/kobjects | Greg Kroah-Hartman | 2008-01-24 | 1 | -0/+278 |
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> |