Re: A question about /usr/include/linux

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

 



On 5/18/06, cheng long <kevinclcn@xxxxxxxxx> wrote:

I'v found that directory /usr/include/linux includes some files that
not included
by directory <include/linux> of kernel source, why is that?


/usr/include/linux is the directory for header files used by user
space applications whereas include/linux of kernel_source is for
kernel and both directories can't keep same header files due to their
usage difference like kernel_source include/linux has function
declarations for functions used directly by kernel it-self but the
/usr/include/linux contains only declarations/structures for those
used by the user_space library (like glibc)

Do some other programs put headers in directory /usr/include/linux?


/usr/include/linux is for user_space applications/programs and some
other program can keep its files in it, but I think its not
recommended

--
Fawad Lateef

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