device_create_file的使用

DEVICE_ATTR是一个宏,其定义在include/linux/device.h: linux #define DEVICE_ATTR(_name, _mode, _show, _store) \ struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) __ATTR宏定义在includ
相关文章
相关标签/搜索