DDE legacy kernel module as library

Adam Lackorzynski adam at os.inf.tu-dresden.de
Tue Feb 17 19:57:07 CET 2009

On Tue Feb 17, 2009 at 19:10:29 +0100, Andre Puschmann wrote:
> I am doing a port of a rather large Linux kernel module to TUDOS. I am
> using DDE for linux26 which works quite good, so far. But I just started
> to work on that and I am still in an early phase of evaluation.
> I want to keep the legacy kernel module code inside a separate library
> which is than linked to my DDE application. The module's "init" method
> is included in the library but not inside the final binary. That's why
> it is not called by l4dde26_do_initcalls().
> Can I somehow tell the linker to also include "module_init()"-functions
> from within a library?

The initcall must be placed in a special section, and is also prefixed,
i.e. 'foo' gets to '__l4ddekit_initcall_foo'. There must be such a
function in your lib, placed in a section '.l4dde_ctors'. Is that the

Adam                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/

More information about the l4-hackers mailing list