kobjects and sysfs kobjects are at the core of sysfs One behind every directory All attributes attach to kobjects Reference counting is key Creating a sysfs directory is easy Initialize a kobject Set the name properly Set the parent and/or kset pointer Call kobject_add() or kobject_register() ...but that directory will be empty And that's boring.