I have a module which encrypts/decrypts virtual memory while installed. So, everything in the swapfile is encrypted, and must be decrypted before being swapped-into main mem. I want to prevent anyone from rmmod'ing this module, if there is still encrypted data in the swapfile. When my module is not present, swapping operates in the normal linux (unencrypted) fashion, which obviously causes bad behavior when pages in the swap are still encrypted. i've tried doing MOD_INC_USE_COUNT to indicate data in the swap, and doing a MOD_DEC_USE_COUNT to 0 when i know the swap is empty, but I can't seem to catch everything and the use count is often incorrect. Just wondering if there's an easier way to do what i'm proposing. anything I can do in the module __exit function? anthony __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/