On Fri, 27 Oct 2006 22:19:25 -0700 Andrew Morton <[email protected]> wrote: > The simplest implementation of "A needs B to have run" is for A to simply > call B, and B arranges to not allow itself to be run more than once. > > But that doesn't work in the case "A needs B to be run, but only if B is > present". Resolving this one would require something like a fancy > "synchronisation object" against which dependers and dependees can register > interest, and a core engine which takes care of the case where a depender > registers against something which no dependees have registered. otoh, we could stick with the simple "A calls B" solution, and A also provides an attribute-weak implementation of B to cover the "A needs B but only if B is present" problems. Had to say, really - one would need to study some specific problem cases. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [RFC: 2.6.19 patch] let PCI_MULTITHREAD_PROBE depend on BROKEN
- From: Matthew Wilcox <[email protected]>
- Re: [RFC: 2.6.19 patch] let PCI_MULTITHREAD_PROBE depend on BROKEN
- From: Andrew Morton <[email protected]>
- Re: [RFC: 2.6.19 patch] let PCI_MULTITHREAD_PROBE depend on BROKEN
- From: Stephen Hemminger <[email protected]>
- Re: [RFC: 2.6.19 patch] let PCI_MULTITHREAD_PROBE depend on BROKEN
- From: Greg KH <[email protected]>
- Re: [RFC: 2.6.19 patch] let PCI_MULTITHREAD_PROBE depend on BROKEN
- From: Pavel Machek <[email protected]>
- Re: [RFC: 2.6.19 patch] let PCI_MULTITHREAD_PROBE depend on BROKEN
- From: Andrew Morton <[email protected]>
- vmlinux.lds: consolidate initcall sections
- From: Andrew Morton <[email protected]>
- [patch] drivers: wait for threaded probes between initcall levels
- From: Andrew Morton <[email protected]>
- Re: [patch] drivers: wait for threaded probes between initcall levels
- From: Alan Cox <[email protected]>
- Re: [patch] drivers: wait for threaded probes between initcall levels
- From: Andrew Morton <[email protected]>
- Re: [patch] drivers: wait for threaded probes between initcall levels
- From: Grant Grundler <[email protected]>
- Re: [patch] drivers: wait for threaded probes between initcall levels
- From: Andrew Morton <[email protected]>
- Re: [RFC: 2.6.19 patch] let PCI_MULTITHREAD_PROBE depend on BROKEN
- Prev by Date: Re: AMD X2 unsynced TSC fix?
- Next by Date: Re: [PATCH] x86_64 irq: reset more to default when clear irq_vector for destroy_irq
- Previous by thread: Re: [patch] drivers: wait for threaded probes between initcall levels
- Next by thread: Re: [patch] drivers: wait for threaded probes between initcall levels
- Index(es):