Re: Kernel & System Headers

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

 



On Wed, Mar 06, 2002 at 03:07:45PM +0530, Amit Sharma wrote:

> /lib/modules/`uname -r`/build/include is a copy of as
> /usr/src/linux/include. (Please correct me again, if I have not understood
> this part clearly).If that is the case than why dont we directly include
> /usr/src/linux/include rather than going including
> /lib/modules/`uname -r`/build/include

It's a symlink - using /lib/modules... doesn't assume the sources are in
/usr/src/linux

> When we include header files in our source files, per se, # include
> <linux/module.h>, then, which header files are included (kernel sources
> present in /usr/include/ or system headers found in /usr/src)

kernel headers. the system headers are NEVER used in kernel compilations

regards
john
-- 
I am a complete moron for forgetting about endianness. May I be
forever marked as such.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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