Google
  Web www.spinics.net

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



[Newbies FAQ]     [Kernel List]     [Site Home]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Rubini]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Networking]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]     [DDR & Rambus]     [UNIX Filesystems]     [Linux Resources]

  Powered by Linux