linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Sound card module loading sequence (was: Re: [PATCH] fix udevtrigger first/default/last ordering)
@ 2006-04-15 23:48 juuso.alasuutari
  2006-04-18 19:12 ` Sound card module loading sequence (was: Re: [PATCH] fix udevtrigger first/default/last ordering Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: juuso.alasuutari @ 2006-04-15 23:48 UTC (permalink / raw)
  To: linux-hotplug

Quoting Greg KH <greg@kroah.com>:

> On Thu, Apr 13, 2006 at 02:22:49AM +0300, juuso.alasuutari@tamperelainen.org
> wrote:
<snip>
> > I don't completely understand the issue that this patch deals with, but
> does it
> > have something to do with module loading order? This has been giving
> > considerable trouble for people (also previously discussed on this list),
> and
> > is still one major obstacle for udev to reliably replace hotplug. At least
> this
> > is the case for the distribution I assist in developing.
>
> It is?  What distro?

Source Mage. While we don't enforce udev and udev-based module autoloading upon
anyone, it would still be great to have it working completely.
Of course this is just a matter of finding the right rules and writing the right
scripts, which is what I'm set on doing.

> > Is there a chance that udev could in the future load modules (network,
> audio,
> > etc.) in the same order every time if no significant hardware changes take
> > place? If yes, when and thanks to what changes? If not, what prevents it?
>
> No, as the modules could be loaded in any order if the buses are probed
> a little bit differently next boot time.  Or if the BIOS reorders the
> bus numbers.  Or another PCI device is added to the system.  Or one
> removed.  Or any of a zillion different other things happening.

I do understand that devices being added/removed have this kind of effect, but
the cases I've experienced and seen have had no such reason. Is it the kernel
that's responsible for this, and are there plans to change that behavior? Is
this what I've heard being called a race condition?

> In short, any reliance on the order of modules being loaded, in order to
> name devices properly for a system is broken.  Use persistant names,
> that is what udev is for.  Look at /dev/disk/ for examples of how to do
> this with block devices today.  It works wonderfully thanks to Kay's
> work.
>
> thanks,
>
> greg k-h
>

I've so far ony taken a quick glance at the persistent storage rules, so I can't
say I'm much wiser yet. Maybe studying them in depth will indeed help me. But
before I start on that I wanted to ask if you (or others) have any ideas how to
create sound device numbering bindings. They seem much more confusing than e.g.
network devices. (I recently managed to handle network device naming problems,
so one worry less now.)

Juuso

----------------------------------------------------------------
This mail sent through L-secure: http://www.l-secure.net/



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-04-19  7:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-15 23:48 Sound card module loading sequence (was: Re: [PATCH] fix udevtrigger first/default/last ordering) juuso.alasuutari
2006-04-18 19:12 ` Sound card module loading sequence (was: Re: [PATCH] fix udevtrigger first/default/last ordering Greg KH
2006-04-18 19:25 ` Darren Salt
2006-04-19  7:01 ` Alexander E. Patrakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).