I have some doubts in Device attributes.
In order to create files in sysfs we use DEVICE_ATTR() macro is used.
But how to create the files and pass the values to the files.
Why we need to use DEVICE_ATTR() macro.......is that any specific purpose r we using.
static DEVICE_ATTR(temp_max, S_IWUSR | S_IRUGO,
i am going thru the above link...............
can anyone please explain me r provide a link which has details abt device attributes?