[linux-dvb] [RFC PATCH] Choose dvb adapter number with a driver specific module option

Janne Grunau janne-dvb at grunau.be
Mon Aug 6 01:22:44 CEST 2007


On Sunday 05 August 2007 06:01:46 Oliver Endriss wrote:
> Janne Grunau wrote:
> > Hi,
> >
> > Dynamic loading of modules by udev on startup (aka coldplugging)
> > doesn't result in deterministic dvb adapter numbers.
> >
> > Besides following changes in dvb-core and dvb-usb core the patch
> > adds to all drivers
> > ...
>
> While I don't care much whether there is an option for this in the
> driver, I'd like to point out that this is the wrong approach (imho).
>
> Citing Greg Kroah-Hartman (udev-113/docs/udev_vs_devfs):
> |    ...
> |    2) udev does not care about the major/minor number schemes.  If
> | the kernel tomorrow switches to randomly assign major and minor
> | numbers to different devices, it would work just fine (this is
> | exactly what I am proposing to do in 2.7...)
> |    3) This is the main reason udev is around.  It provides the
> | ability to name devices in a persistent manner.  More on that
> | below. ...
>
> According to this, adding such an option is a step into the wrong
> direction. The right way is to fix the udev scripts...

I'm not sure that this is actually consent on lkml and not just Greg 
Kroah-Hartman's opinion.
I find the module options much more conveniant than writing udev rules 
myself. The automatic persistent network interface generator as used by 
Gentoo atm has issues (it's not possible to just change a broken nic 
without changing udev rules).

Janne



More information about the linux-dvb mailing list