Hi, On Thursday 17 March 2005 04:46, Frank Sorenson wrote: > Dmitry Torokhov wrote: > | Hrm, can we be a little more explicit and not poke in the sysfs guts right > | in the driver? What do you think about the patch below athat implements > | "attribute arrays"? And I am attaching cumulative i8k patch using these > | arrays so they can be tested. > > Also, with power_status being a module parameter defaulting to 0/off, we > can leave out the device_create_file for the i8k_power_status_attr. No > need to expose it in sysfs if it will always return -EIO. > Since root can toggle power_status through sysfs at runtime (see /sys/modules/i8k/parameters/power_status) I think it is simplier to have the file always created. I have implemented arrays of groups of attributes: [dtor@core ~]$ ls -R /sys/bus/platform/devices/i8k/fan/ /sys/bus/platform/devices/i8k/fan/: 0 1 /sys/bus/platform/devices/i8k/fan/0: speed state /sys/bus/platform/devices/i8k/fan/1: speed state Please give it a try when you have time. Thanks! -- Dmitry