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 <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to