On Thu, 2005-05-19 at 00:08 -0700, Andrew Morton wrote:
> Evgeniy Polyakov <johnpol@xxxxxxxxxxx> wrote:
> > > Is there any reason for being able to do that?
> > It was created to be able to load several different connector devices
> > from different modules [basically it was module1.ko unit=10, module2.ko
> > unit=11 and so on].
> Loading multiple instances of the same module so that we get multiple
> instances of its data structures? That's fairly ghastly.
It was not the same module.
it was quite different module which implemented similar functionality
and used different connector device for different purposes.
> We should remove the feature. If there is demonstrated need for multiple
> instances then it should be done by more conventional means - syscall,
> allocation of a device major then use the minor as a selector or whatever.
It is easy to use feature which prevents problems
with situation when the same socket number is used, for example,
in 2.6 kernel while connector uses it in -mm tree.
Crash is better than data corruption -- Arthur Grabowski
Description: This is a digitally signed message part