How to extend the existing generic class power_supply in linux kernel?

343 Views Asked by At

I want to extend the generic sysfs class power-supply with some specific attributes. What is the proper way to do that?

I'm confused after reading the sysfs power-supply documentation. According to it, it is recommended to use the existing class as it is and to implement specific attributes in the device driver resp. extend the attributes of it under */sysfs/devices/housekeeper/power-supply/special-attribute*.

0

There are 0 best solutions below