v4l2驱动无设备节点
做了个v4l2的摄像头驱动,我的video_device结构体如下,然后直接调用video_register_device()。为什么在/dev下没有设备节点?
求指导。。。
- C/C++ code
999 static struct video_device video_fd = { 1000 .name = "s3c2440camif", 1001 .fops = &camif_fops, 1002 .ioctl_ops = &camif_ioctl_ops, 1003 .minor = -1, 1004 .release = video_device_release, 1005 .debug = V4L2_DEBUG_IOCTL, 1006 };
嵌入式linux 需要手动执行
mdev -s
才能自动生成设备节点