misc_device
linux kernel miscdevice编写,需要三步:
创建 struct file_operations 变量
创建 struct miscdevice 变量
注册/注销miscdevice
1. 创建 struct file_operations 变量
2. 创建 struct miscdevice 变量
3. 注册/注销miscdevice
Last updated
Was this helpful?