On Wed, Jan 8, 2014 at 1:50 PM, m silverstri
<michael.j.silvers...@gmail.com> 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 majord...@vger.kernel.org
> 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to