Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-25-2004, 08:31 AM   #1
Registered: Aug 2003
Location: kerala , India
Distribution: RH9 , FC1 ,
Posts: 141

Rep: Reputation: 15
number and position of "__ " in code ... question


if you read through some kernel code or somethig simillar..u will find they have seperated the different spaces with different number of "_" and at different positions...

eg : __KERNEL__DATA_

DOES this have any significance?

just enquiring


Old 06-25-2004, 10:11 AM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint, Tribblix
Posts: 9,731

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
Most (if not all?) C predefined macros have all this form (double underscore as prefix and suffix).
for example ___LINE___ and __FILE__

__KERNEL__ is not predefined by the compiler, but set in the linux kernel makefile.

It follows the same syntaxic rule and objective: prevent any clash with custom code macros.

Not sure about the __KERNEL__DATA_ though, didn't find it anywhere.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 05:08 PM
pilot-xfer w/ Kyocera 7135 "device lied about number of ports" meznak Linux - Laptop and Netbook 2 11-17-2005 05:33 PM
How to convert Assembly code to "C" source code ssg14j Programming 2 08-01-2005 01:48 PM
"how do I extract a number from a text file using shell command?" sdandeker Linux - Networking 3 02-12-2004 09:54 AM
Number of "connect"-commands limited (Qt/KDE-programming)? schultzm Programming 3 09-06-2003 10:09 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration