Re: EXPORT_SYMBOL Vs extern?

2008-05-05 Thread Li Zefan
pradeep singh wrote: Hi All, A Quick but perhaps dumbass query, 1. int function_A(...) { ...; } 2. int function_B(...) { ...; } EXPORT_SYMBOL(function_B); Okay i understand I should use the EXPORT_SYMBOL way if i want function_B to be used

RE: EXPORT_SYMBOL Vs extern?

2008-05-05 Thread Rajat Jain
Hi, Is it a compulsion for a function which need to be used in any other source file, exported through EXPORT_SYMBOL only? Does this means all the places in kernel(and there are loads of them), where a function is non-static and is used in other source files should actually be using

RE: EXPORT_SYMBOL Vs extern?

2008-05-05 Thread Anirban Sinha
EXPORT_SYMBOL macro creates a new kernel symbol entry (address of the symbol, symbol) based on the value you specify and puts it in a special section of the kernel image, in __ksymtab section. When modules are loaded dynamically, the loader resolves the symbols during run time by parsing the