What is the significance of device_attribute in the show and store function in the sysfs?
Code:
ssize_t (*show)(struct device *dev, struct device_attribute *attr, char *buf);
I did not get any example where this parameter is being used.
I just want to know that what device_attirbute is doing here.
Can someone please help me to understand this?