Hi Andrew, > Anyone know how to insmod a module without the 'autoclean'. > (I just want to load it permanently) > I had a look at insmod, but the only option I see a -k option which > turns on autoclean but not one to disable it. I'm not sure that this is the best way to do this, but if you have the source code to the module, add MOD_INC_USE_COUNT; as the first statement in the init_module() method.
Then the module will always be in use (since you're not decrementing the use count with MOD_DEC_USE_COUNT) and you won't be able to rmmod it-- the only way to get rid of this module will be to reboot the system. So make sure you're completely happy with your module before doing this because this will make your compile-debug cycle significantly longer. :) cat /proc/modules will always show a '1' as the usage count for your module. Hope this helps, Stuart. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug