我在内核2.6.32,tvp514x+dm3730的驱动涉及到的文件中:omap34xxcam.c,tvp514x.c,isp.c等,发现在omap34xxcam.c文件中有:
static struct v4l2_int_master omap34xxcam_master = {
.attach = omap34xxcam_device_register,
.detach = omap34xxcam_device_unregister,
};
omap34xxcam_device_register用于video_register_device注册/dev/video节点,但是我发现没有程序去调用attach,.以至于我运行程序后说没有找到/dev/video。
现在很想知道谁调用了attach.现在很迷茫了。
(plus:我发现在内核2.6.37中由isp.c文件去调用video_register_device函数去注册/dev/video)