Hi Palmax, On Saturday 24 April 2010 01:04:43 Palmax Maverick wrote: > Hello Laurent and others linux-uvc developers, > > I want to know what is the "struct usb_device *udev" of my webcam. > Have I to search in /sys/devices/pciXXXX:XX/XXXX:XX:XX:XX/usbX/ > directory? > I think that you should know a function that helps me in this work :-). > > I need it because I want to get some control information of my webcam: > maximum packet sizes, resolutions of still image formats, ... > I think that I should use uvc_probe_video for getting this > information, after I uvc_init_video my webcam.
The usb_device structure represents the USB device in kernel space. The uvcvideo driver receives a pointer to a USB interface in its probe function, and gets the USB device pointer for that interface. The USB device is then used for various purposes, such as printing messages to the kernel log. You can get to the USB interface in sysfs through the /sys/class/video4linux/videoX/device symlink. The parent of that device is the USB device. -- Regards, Laurent Pinchart _______________________________________________ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel