For a more complete example of using ksets and kobjects properly, see the-sample/kobject/kset-example.c code.+example programs samples/kobject/{kobject-example.c,kset-example.c},+which will be built as loadable modules if you select CONFIG_SAMPLE_KOBJECT.-- 1.7.0.2