Skip to contentSkip to conversation

cleanup_module/delete_module.

DISCUSSION sendhil kumar 2 participants 2 messages Jul 6, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

I want to know the difference between the cleanup_module and delete_module system call. Can any one please clarify my doubt.

Thanks,
sendhil

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

#1 lore raw
Quoted 3 lines · sendhil kumar

I want to know the difference between the cleanup_module and delete_module system call. Can any one please clarify my doubt.

insmod inserts the address of cleanup_module() in the module structure at load time. When syscall delete_module() is about to remove the module, it calls the module's clean up routine, if it exists. So cleanup_module() is invoked during module deletion to let the module do any local clean up.