摘要:
device driver也可以像用户态程序一样在运行开始时传入参数,例如argc和argv。 module_param(name, type, perm) module_param_array(name, type, nump, perm) module_param_cb(name, ops, a 阅读全文
posted @ 2020-11-29 23:52
稀里糊涂的胡闹
阅读(1803)
评论(0)
推荐(0)
摘要:
使用DEVICE_ATTR宏,可以定义一个struct device_attribute设备属性,使用函数sysfs_create_group或sysfs_create_file便可以在设备目录下创建具有show和store方法的节点。能方便的进行调试。 一、使用DEVICE_ATTR构建devic 阅读全文
posted @ 2020-11-29 15:04
稀里糊涂的胡闹
阅读(6016)
评论(0)
推荐(1)