Thanks. I don't have the a running hardware. If I can only search within the code space, how can I find out which driver is for '/dev/video11'? Is there a config file which I can look it up? Thank you. On Wed, Jan 8, 2014 at 10:56 AM, Devin Heitmueller <dheitmueller@xxxxxxxxxxxxxx> wrote: > On Wed, Jan 8, 2014 at 1:50 PM, m silverstri > <michael.j.silverstri@xxxxxxxxx> wrote: >> In linux kernel, a device (e.g. codec) can register as a file (e.g. >> /dev/video11). >> >> How can I find out from the code which driver is registered as >> '/dev/video11'. i.e. what is the driver will be invoked when I >> open('/dev/video11', O_RDWR,0) in my user space code? >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-media" in >> the body of a message to majordomo@xxxxxxxxxxxxxxx >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > The QUERYCAP ioctl() will tell you the driver name. > > http://linuxtv.org/downloads/v4l-dvb-apis/vidioc-querycap.html > > Devin > > -- > Devin J. Heitmueller - Kernel Labs > http://www.kernellabs.com -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html