/* interface for exporting device attributes */ struct device_attribute { struct attribute attr;
ssize_t (*show)(struct device *dev, struct device_attribute *attr, char *buf); ssize_t (*store)(struct device *dev, struct device_attribute *attr, const char *buf, size_t count);
};