发布时间:2012-12-12 20:13:25
说道sysfs接口,就不得不提到函数宏 DEVICE_ATTR 原型是#define DEVICE_ATTR(_name, _mode, _show, _store) \ struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) 定义于device.h /* interface for exporting device attributes */ struct device_attribute { struct a......【阅读全文】