Hi,
On Sun, Oct 12, 2008 at 6:42 PM, shankar <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] > Please read the FAQ at http://kernelnewbies.org/FAQ > > Thanks. Marek -- as simple as primitive as possible ---------------------------------------------- Marek Beliško Ruská Nová Ves 219 08005 Prešov Slovakia http://binaural.ifastnet.com
