inter_module_* routines deprecated in 2.6.16 kernel
- From: Martin Feeney <mjfeeney@xxxxxxxxxxx>
- Date: Mon, 21 Aug 2006 21:03:54 GMT
Hello
In some previous 2.4.xx kernel code, I used the inter_module_* (where _* is register, unregister, add, put, get) routines to help resolve circular references between kernel modules. By circular references, I mean Mod1 refers to a symbol in Mod2 but Mod2 refers to a symbol in Mod1. Neither can be insmod'ed without generating an 'unknown symbol' error.
I have a similar situation with some code I'm writing for the 2.6.16 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.
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?
The obvious answer is to rewrite the modules to eliminate the dependency but this may be easier said than done.
Thanks - Martin
.
- Follow-Ups:
- Re: inter_module_* routines deprecated in 2.6.16 kernel
- From: David Schwartz
- Re: inter_module_* routines deprecated in 2.6.16 kernel
- Prev by Date: help!!a question to trouble me a lot in reading the driver code
- Next by Date: Re: What is the best tool for traceing the driver??
- Previous by thread: help!!a question to trouble me a lot in reading the driver code
- Next by thread: Re: inter_module_* routines deprecated in 2.6.16 kernel
- Index(es):
Relevant Pages
|