Re: inter_module_* routines deprecated in 2.6.16 kernel
- From: "David Schwartz" <davids@xxxxxxxxxxxxx>
- Date: 24 Aug 2006 02:41:35 -0700
Martin Feeney wrote:
kernel. Evidently, these routines have been deprecated in the 2.6.16
kernel. In fact, the inter_module_get routine is a private (i.e.
static) function.
Yeah, I'm not sure why. I thought they were elegant. The only thing I
can find is one statement that they weren't safe or elegant, but I
thought they were both.
Does anyone know which, if any, routines have replaced these routines
or, if they haven't been replaced, what is the technique for resolving
circular module references?
There are a few possibilities. One is to create a module that acts as a
communication module between the other two. Another is to use a weak
symbol. If it's 0, you know the other module hasn't been loaded yet.
Each module, on startup, can check if the other one is loaded. If not,
it can do nothing. If so, it can start up the other module as well as
itself.
DS
.
- References:
- inter_module_* routines deprecated in 2.6.16 kernel
- From: Martin Feeney
- inter_module_* routines deprecated in 2.6.16 kernel
- Prev by Date: Re: socket communication and DNS
- Next by Date: insight for multiple users
- Previous by thread: inter_module_* routines deprecated in 2.6.16 kernel
- Next by thread: PCI IRQ number reported by scanpci and lspci are different.
- Index(es):
Relevant Pages
|