kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* what is the use of #ifndefs
@ 2015-07-20 10:03 Ahmed Soliman
  2015-07-20 15:55 ` leo kirotawa
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Ahmed Soliman @ 2015-07-20 10:03 UTC (permalink / raw)
  To: kernelnewbies

currently I started reading through the linux kernel and I started
reading liunx/include/linux/list.h> I understood some of the functions
but still I dont know what does these lines of code do
#ifndef _LINUX_LIST_H
#define _LINUX_LIST_H
which exist at the very beginning of the file
I also noticed that there is many similar ifndefs in almost any .h
file in the kernel
note that I understand wnat does ifndef do bu I dont understand what
goal is it supposed to achieve at the beginning of the headerfile

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-07-21 19:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-20 10:03 what is the use of #ifndefs Ahmed Soliman
2015-07-20 15:55 ` leo kirotawa
2015-07-20 16:03   ` Stephan Müller
2015-07-20 16:11 ` Greg Freemyer
2015-07-20 17:00 ` anish singh
2015-07-21  2:24 ` Navy
2015-07-21  5:05   ` Raul Piper
2015-07-21  5:34 ` Amit Pandey
2015-07-21  7:01   ` Navy
2015-07-21  8:33   ` Bernd Petrovitsch
2015-07-21 19:44 ` Aruna Hewapathirane

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