Kobjects are the mechanism behind the sysfs virtual filesystem. For every directory
found in sysfs, there is a kobject lurking somewhere within the kernel. Every kobject
of interest also exports one or more attributes, which appear in that kobject’s sysfs
directory as files containing kernel-generated information.Code that works with sysfs should include <linux/sysfs.h>.


sysfs comes into existence after K-2.6 then what is need of that and how is it perform before 2.6 since we didn’t have Linux Device Model.How hot plugging mechanism performs in kernel 2.4 ?