[pvrusb2] How to uniquely identify a device

Andreas Beck becka-ilist-pvrusb2 at bedatec.de
Sun Jan 11 03:00:23 CST 2009


Mike Isely <isely at isely.net> wrote:
> On Sun, 11 Jan 2009, Carsten Meier wrote:
> > How to associate config-data with a video-device? 
> > 1. Save device-file-name with the config data (e.g. /dev/video1).
> > This won't work reliably because device-nodes are created dynamicly
> > 2. Save card and bus_info with config data. 
> You don't have to convince me of the use-case.  I understand that 
> perfectly well and agree with the need.  I just want to review the V4L 
> spec and look at a few other driver examples before committing to a 
> change like that.  I also want to be sure we're not missing another 
> (easy) way to do this.

Udev? This allows for 1. in many cases. Main problem case being "replug
while opened" scenarios, which however usually work as expected when you
use SYMLINK= with udev.

Yet I agree, that there should be a way to identify a device instance
from the already open file descriptor as well.


CU, Andy



More information about the pvrusb2 mailing list