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
相關文章
相關標籤/搜索