Google
  Web www.spinics.net

Re: Include directories

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


> Hi,

Hi,

> Also, I want to understand that what /include/linux headers are for and what
> /include/asm-generic headers are for. How do they differentiate between each
> other? What is the logic behind having two separate header folders? How do
> they relate to each other?

AFAIK, headers found in /include/asm-generic directory is for architechture
independent (probably shared across architectures) code. Most likely you do
not need to include these headers directly, instead we include these headers
indirectly via architecthure dependent headers.

OTOH, /include/linux directory is for generic header files to define interfaces
between components of the kernel. In most situations, you will find all the
kernel functionalities you need in these headers.

regards, chngr.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Newbies FAQ]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Networking]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

Add to Google Powered by Linux