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

Nick Andrew nick-linuxtv at nick-andrew.net
Thu Aug 2 05:25:12 CEST 2007


On Thu, Aug 02, 2007 at 03:15:04AM +0200, Janne Grunau wrote:
> Dynamic loading of modules by udev on startup (aka coldplugging) doesn't
> result in deterministic dvb adapter numbers.

Isn't the usual response to write some udev rules to set the name
based on device characteristics?  Thus taking the naming policy
out of the module and into userspace.

Since you're defining a numbering order when you load the module, if
you have 2 or more devices which use the module then your solution
doesn't solve the problem of controlling the numbers because it
depends which device the kernel finds first. With udev, if there's
some way to distinguish between two of the same device, then rules
can be written to set the name of each.

Nick.



More information about the linux-dvb mailing list