Embedding kobjects A kobject is not interesting by itself A sort of top-level virtual class Always embedded in another structure Example: char devices struct cdev { struct kobject kobj; struct module *owner; struct file_operations *ops; struct list_head list; }; Use container_of() to turn kobject to container cdev = container_of(kobj_ptr, struct cdev, kobj); Do not use direct casts