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>.

