On Sun, Dec 08, 2002 at 02:21:52PM -0800, Jose Luis Alarcon wrote: > One more thing about this: > > I put 'MOD_INC_USE_COUNT;' like the last line just before the key (}) that > ends the cleanup_module() void function....and the program load with insmod ^^^^^^^^^^^^^^^^ When the cleanup_module() is called, the module is already dead. The function just has to take care of not leaving a dangling pointer anywhere, but it can't return the module to use. > and unload with rmmod without problems. lsmod tells that the module is used > by 0 (unused). All this with the 2.5.49 kernel. Maybe was a problem of the > "situation" of the line....... ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@ucw.cz> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/