handling of many sysfs attributes using a single show function