Re: module init is not getting called

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Sun, Oct 12, 2008 at 6:42 PM, shankar <rahulanand97@xxxxxxxxx> wrote:> Hi,>>            I  have written a module.> I have defined the init and exit functions fn_init() and fn_exit() for the> module.>> I find that init is not getting called, but exit gets called when I> do rmmod.>> (  First I noticed that printk is not working from init routine , but> works from fn_exit.  Then I  wrote to null address from fn_init().> insmod was still ok. )>> Does anyone know why ?>> I also find that even if  I comment  module_init and module_exit> declarations,  my module still compiles.  Is this expected ?
Could you please put code for your driver?
>>               thanks>                shankar>>>> --> To unsubscribe from this list: send an email with> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx> Please read the FAQ at http://kernelnewbies.org/FAQ>>
Thanks.
Marek
-- as simple as primitive as possible----------------------------------------------Marek BeliškoRuská Nová Ves 21908005 PrešovSlovakiahttp://binaural.ifastnet.com��.n��������+%����w�j)p���{.n����z�ޖw�n'���q���b�������v��m�����Y�����


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux