* Include directories
@ 2012-03-15 6:45 Sertaç Olgunsoylu
2012-03-27 21:40 ` Cihangir Aktürk
0 siblings, 1 reply; 2+ messages in thread
From: Sertaç Olgunsoylu @ 2012-03-15 6:45 UTC (permalink / raw)
To: kernelnewbies
Hi,
While I was doing some reading on system calls, I did a search for
"syscalls.h" to find the header file in LXR. The search results puzzled me.
There is a dozen of "syscalls.h" files coming from directories under
"arch/_arch_name_/include/asm". These are ok, they are architecture
specific definitions or something else needed. The question is why do we
have two different "syscalls.h" headers under both /include/linux and
/include/asm-generic?
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?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120314/2ef10681/attachment-0001.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Include directories
2012-03-15 6:45 Include directories Sertaç Olgunsoylu
@ 2012-03-27 21:40 ` Cihangir Aktürk
0 siblings, 0 replies; 2+ messages in thread
From: Cihangir Aktürk @ 2012-03-27 21:40 UTC (permalink / raw)
To: kernelnewbies
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-27 21:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-15 6:45 Include directories Sertaç Olgunsoylu
2012-03-27 21:40 ` Cihangir Aktürk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).