• Rusty Russell's avatar
    [PATCH] In-kernel Module Loader · aa65be3f
    Rusty Russell authored
    This is an implementation of the in-kernel module loader extending
    the try_inc_mod_count() primitive and making its use compulsory.
    This has the benifit of simplicity, and similarity to the existing
    scheme.  To reduce the cost of the constant increments and
    decrements, reference counters are lockless and per-cpu.
    
    Eliminated (coming in following patches):
     o Modversions
     o Module parameters
     o kallsyms
     o EXPORT_SYMBOL_GPL and MODULE_LICENCE checks
     o DEVICE_TABLE support.
    
    New features:
     o Typesafe symbol_get/symbol_put
     o Single "insert this module" syscall interface allows trivial userspace.
     o Raceless loading and unloading
    
    You will need the trivial replacement module utilities from:
    	http://ozlabs.org/~rusty/module-init-tools-0.6.tar.gz
    aa65be3f
sys.c 31.6 KB