[PATCH][RFC] __init and friends support for loadable modules

From: Andrey Panin (pazke@orbita1.ru)
Date: Wed May 08 2002 - 05:29:33 EST


Hi all,

attached patch adds support for freeing .init sections of loadable modules
after init_module() function exits. Modutils have support for this since 1998,
but kernel support didn't exist.

All architectures that use vmalloc/vfree for module_map/unmap should work.

Patch contains three major part:
        - shrink_vm_area() function for reducing size of vmalloc'ed area;
        - init.h changes to allow .init sections in modules;
        - change in kernel/module.c.

Comments, suggestions ?

Best regards.

-- 
Andrey Panin            | Embedded systems software engineer
pazke@orbita1.ru        | PGP key: wwwkeys.eu.pgp.net



- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 14 2002 - 12:00:08 EST