Summary
By completing this chapter, you should be familiar with LDM, its data structures (bus, class, device, and driver), and its low-level data structures, which are kobject
, kset
, kobj_type
, and attributes
(or a group of these). You should now know how objects are represented within the kernel (device topology) and be able to create an attribute (or group) that exposes your device or driver features and properties through sysfs.
In the next chapter, we will cover the IIO (Industrial I/O) framework, which heavily uses the power of sysfs.