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:
Hi, Fawad
Thanks in advance.

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

You mean that /usr/include/linux have nothing to say with include/linux?
i.e., /usr/include/linux is generated by the user-space library or program?


No, I meant that /usr/include/linux has to deal with user space
programs (those files are providing structures for using functionality
provided by kernel to user applications) like compare
/usr/include/linux/cdrom.h with kernel's include/linux/cdrom.h and you
will find that /usr/include/linux files only/mostly have structures
whereas kernel's include/linux/cdrom.h has some function declarations
(extern) too with some other code.

So, /usr/include/linux can have stuffs found include/linux but you
can't compare them as it is.

I hope my explanation will help.

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