module init is not getting called

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

 



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 ?

               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


[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