2001-07-06 03:15:12

by sendhil kumar

[permalink] [raw]
Subject: cleanup_module/delete_module.

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/


2001-07-06 03:33:42

by Keith Owens

[permalink] [raw]
Subject: Re: cleanup_module/delete_module.

On Thu, 5 Jul 2001 20:14:41 -0700 (PDT),
sendhil kumar <[email protected]> wrote:
>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.