Hi all, I think u need not to export the variable explicitly. Even though I am not an expert, still I am giving some tips. Just make sure following things:- 1. The variable defined in the first module should be global( not static) 2. You should define it asan extern in the the second module. Thanks, Shine Mohamed On Wednesday 08 October 2003 12:16, Eugene Teo wrote: > What do you mean by default it is exported? I got my > symbol accessible by another module by explicitly exporting > it. Perhaps you should try that too? > > <quote sender="Abhinav Bharti"> > > > Hi, > > > > I need some help in accessing symbols exported from > > other module. > > > > One of my modules defines a variable ( say X) and by > > default it is > > exported > this is also visible in ksyms output. > > > > But when I try to access it from another module and > > try to print its > > address It always returns zero and hence any access to > > it crashes the > > system stating null pointer reference > > > > I am not able to figure what is going wrong. > > > > Is it because I am not explicitly exporting the > > symbols > > > > Help needed. > > > > Regds, > > > > Abhinav > > > > > > ===== > > > > from the desk of:Abhinav Bharti > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > -- > > Kernelnewbies: Help each other learn about the Linux kernel. > > Archive: http://mail.nl.linux.org/kernelnewbies/ > > FAQ: http://kernelnewbies.org/faq/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/