kobject: add sample code for how to use kobjects in a simple manner.

This is a simple kobject module, showing how to use kobj_attributes in
basic and more complex ways.

Cc: Kay Sievers <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Greg Kroah-Hartman 2007-11-27 11:28:26 -08:00
commit 40efcb05f2
4 changed files with 149 additions and 1 deletions

View file

@ -13,4 +13,14 @@ config SAMPLE_MARKERS
help
This build markers example modules.
config SAMPLE_KOBJECT
tristate "Build kobject examples"
help
This config option will allow you to build a number of
different kobject sample modules showing how to use kobjects,
ksets, and ktypes properly.
If in doubt, say "N" here.
endif # SAMPLES