RE: EXPORT_SYMBOL Vs extern?

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

 



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 EXPORT_SYMBOL?  
> 

EXPORT_SYMBOL is mandatory if you want to use a kernel defined function
in a module (or vice versa), or a module defined function in a different
module. 

You can use a non-static function (defined in say A.obj) in a different
obj file (defined in say B.obj) provide that both the objs either belong
to the same module, or are linked in the kernel at the compile time.

Thanks,

Rajat

--
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