inter_module_* routines deprecated in 2.6.16 kernel



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
.



Relevant Pages

  • Linux Kernel Security - Can it ever be 100%
    ... Linux kernel will ever be as good as I would like it to be. ... am still hoping kernel security will eventually be as good as the security ... read input from a user process, or can we say that 95% of user inputs can ... standardized validation routines with no ...
    (Debian-User)
  • After executing MDCreateThread data abort occurs
    ... target.The code under Startup and KernelStart routines are running fine ... So the Kernel is not letting this address 0xc2000000 to be programmed. ... RAM 88300000 00D00000 RAM; ... When we are working to troubleshoot we found that exception vectors ...
    (microsoft.public.windowsce.embedded)
  • Re: Linux Kernel Security - Can it ever be 100%
    ... > Linux kernel will ever be as good as I would like it to be. ... > of a typical microprocessor instruction set. ... It depends on your workload, but under most, yes, syscalls are very ... > limited to just those routines where this transaction was time-critical, ...
    (Debian-User)
  • Re: [PATCH 12/39] NLKD/i386 - time adjustment
    ... >>I really do not see the relavence of the run time library patches ... > these routines must not be used by code outside of the debugger (and the ... > they'd be hidden from the rest of the kernel (and also so that they'd ...
    (Linux-Kernel)
  • Re: Win32 API and Kernel
    ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... >>> Now inside the kernel, there is a set of Kernel Support Routines ... >>> that allow programming of device drivers, ...
    (microsoft.public.win32.programmer.kernel)