Re: udev rules for persistent symlinks for adapter?/frontend0 devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> KERNEL[1335308536.258048] add      /devices/pci0000:00/0000:00:14.4/0000:03:00.0/dvb/dvb0.frontend0 (dvb)
>> UDEV_LOG=3
>> ACTION=add
>> DEVPATH=/devices/pci0000:00/0000:00:14.4/0000:03:00.0/dvb/dvb0.frontend0
>
> Perhaps this is the ultimate in persistence, but unfortunately is also
> highly dependent on physical location in the machine (i.e. which PCI
> slot even).
>
>> SUBSYSTEM=dvb
>> DEVNAME=dvb/adapter0/frontend0
>
> AFAIU, the "adapter0" is not representative of physical device
> persistence but is rather dependent on probing order.  IOW,
> "dvb/adapter0/frontend0" will always be the first DVB device found but
> won't be a guarantee of which physical device it is.  This is what I
> currently have with /dev/dvb/adapter{0.1} which is unfortunately
> unsuitable since it's so predictable.
>
> I might end up having to bite the bullet and using DEVNAME.  :-(
>
> Thanks for the info though, much appreciated,
> b.
>

All you need to do is to use adapter_nr option passed to the kernel module, i.e.

options dvb_usb_dib0700 adapter_nr=0,1

The above line tell the module to assign 0 and 1 to the card that uses
that module, so in your case you create a options.conf under
/etc/modprobe.d/

then do 2 lines of

option kernel_module adapter_nr=0
option kernel_module adapter_nr=1

On reboot the kernel modules will pick up it's adapter number and
apply it for you, no need for any udev rules.
--
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


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux