static struct video_device vdev_template={……}; //声明video_device,指出挂接驱动 static struct file_operations ov511_fops={……}; //声明本驱动的文件操作函数指针 struct video_device*vdev=video_devdata(file); //从文件指针中提取出video_device结构 |
|
欢迎光临 DIY编程器网 (http://diybcq.com./) | Powered by Discuz! X3.2 |