代码:
#include <linux/atomic.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/videodev2.h>
#include <linux/vmalloc.h>
#include <linux/wait.h>
#include <linux/version.h>
#include <asm/unaligned.h>
#include <media/v4l2-common.h>
static struct usb_device_id myuvc_ids[] = {
/* Generic USB Video Class */
{ USB_INTERFACE_INFO(USB_CLASS_VIDEO, 1, 0) },/*vdieocontral interface*/
{ USB_INTERFACE_INFO(USB_CLASS_VIDEO, 2, 0) },
{}
};
static int myuvc_probe(struct usb_interface *intf,const struct usb_device_id *id)
{
static int count;
printk("connect %d\n",count++);
return 0;
};
static void myuvc_disconnect(struct usb_interface *intf)
{
static int count;
printk("disconnect %d\n",count++);
};
struct usb_driver myuvc_driver = {
.name = &#