#V4L2 video_device 分析
##目录
video_device 结构体
struct video_device
结构体是用来生成和管理V4L2 device节点的。video_device结构体如下:
struct video_device
{
#if defined(CONFIG_MEDIA_CONTROLLER)
struct media_entity entity;
struct media_intf_devnode *intf_devnode;
struct media_pipeline pipe;
#endif
const struct v4l2_file_operations *fops;
u32 device_caps; //device capabilities as used in v4l2_capabilities
/* sysfs */
struct device dev; //struct device for the video device
struct cdev *cdev;
struct v4l2_device *v4l2_dev; //pointer to &struct v4l2_device parent
struct device *dev_parent;
struct v4l2_ctrl_handler *ctrl_handler;
struct vb2_queue *queue; //vb2_queue associated with this device node
struct v4l2_prio_state *prio; //with device's Priority state
/* device info */
char name[32];
int vfl_type; //V4L device type
int v