Hi,

I could fix this I just had to move
unwind_remove_table(mod->unwind_info, 1); out of the loop. There also
some problem with my MODULE_IS_MINE().

Thanks!
Asim

On 8/27/08, Asim <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Linux has this feature where module->init() is freed for some drivers
> once insmod modprobe finishes. I want to prevent this from happening.
> For this I ifed out the following lines from the code for my
> particular module from module.c:-
>
> if  !(MODULE_IS_MINE())
> {
>                unwind_remove_table(mod->unwind_info, 1);
>                 printk ("Freeing for module %s.\n", mod->name);
>                 module_free(mod, mod->module_init);
>                 mod->module_init = NULL;
>                 mod->init_size = 0;
>                 mod->init_text_size = 0;
> }
>
> After I do this, the mod->init of my code now points to the next
> module which is loaded during system boot. Does anyone have any ideas
> how do I go about this i.e. keep my mod->init intact?
>
> Regards,
> Asim
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to