Re: any reason for the "EXPORT_SYMBOL" stuff to be in module.h?

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

 



EXPORT_* macros are used to export the kernel symbols (functions, data
structures) to the outside world viz. modules.
So, these macros are logically tied with the kernel module infrastructure.

Regards,
- Ratnadeep

On 9/10/07, Robert P. J. Day <rpjday@xxxxxxxxxxxxxx> wrote:
>
>   it occurred to me as i was perusing some of the source files that
> some of those files were including module.h for no other reason than
> to have access to the EXPORT_* macros.  but why are those macros in
> module.h?
>
>   they're not tied specifically to modules.  for example, the file
> kernel/mutex.c can't possibly be selected to be a module, and yet it
> has to include that header file.
>
>   wouldn't it make more sense to have the EXPORT and symbol stuff in,
> perhaps, kernel.h?  or some other, lower-level header file that would
> remove the need for including module.h in a file that has absolutely
> nothing to do with modules?
>
> rday
>
> --
> ========================================================================
> Robert P. J. Day
> Linux Consulting, Training and Annoying Kernel Pedantry
> Waterloo, Ontario, CANADA
>
> http://crashcourse.ca
> ========================================================================
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>

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