Previously Rene Hojbjerg Larsen wrote: > Perhaps this is not clear from the rmmod man page, but modules that are > explicitly modprobe'd are *not* considered unused by rmmod -a. I don't > know about 2.0 kernels, though. Look like not rmmod but the kernel decides which modules should be unloaded. The code is in sys_delete_module() in kernel/module.c. Here is the condition 2.0.36 uses to tests if a module should be unloaded: ((mp->ref == NULL) && (mp->state == MOD_RUNNING) && ((GET_USE_COUNT(mp) & ~MOD_VISITED) == MOD_AUTOCLEAN)) Current 2.1 kernel uses a somewhat different test but the effect is the same. If nobody complains really fast I'll give modutils a crontab in the next package. Wichert. -- ============================================================================== This combination of bytes forms a message written to you by Wichert Akkerman. E-Mail: wakkerma@cs.leidenuniv.nl WWW: http://www.wi.leidenuniv.nl/~wichert/
Attachment:
pgppLoIaOo5Y7.pgp
Description: PGP signature