Adding kobjects to ksets To put a kobject in a kset: Set kobject->kset accordingly Call kobject_add(&kobject); Can also call kobject_register(&kobject); Same as kobject_init() + kobject_add() This operation has side effects Increments reference count Of the parent kobject too Adds the kobject to sysfs Generates hotplug events Removing a kobject Use kobject_del() or kobject_unregister()