LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



Reply
 
Search this Thread
Old 10-12-2006, 01:35 PM   #1
someshwar
LQ Newbie
 
Registered: Oct 2006
Posts: 14

Rep: Reputation: 0
How to access 2.6 kernel macros defined under __KERNEL__


How can I access kernal(2.6) macro(task_pt_regs) defined under
#ifdef __KERNEL__

in linux-2.6 kernel modules

hope I am clear to u
 
Old 10-14-2006, 12:25 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
you shouldn't need to unless you are writing a driver. anyway, just define __KERNEL__ somewhere in your code.
 
Old 11-01-2006, 12:36 AM   #3
someshwar
LQ Newbie
 
Registered: Oct 2006
Posts: 14

Original Poster
Rep: Reputation: 0
Unhappy I tried this way already but still I can't acess

Quote:
Originally Posted by osor
you shouldn't need to unless you are writing a driver. anyway, just define __KERNEL__ somewhere in your code.
I am getting error like this: redeclaration of __KERNEL__
pls guide me in this regard.

Last edited by someshwar; 11-07-2006 at 06:16 AM.
 
  


Reply


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
where defined(__i386) is being defined?? syseeker Programming 1 06-27-2006 07:24 AM
user defined function in kernel vishalbutte Programming 4 02-07-2006 07:01 AM
Macros In C drumstick Programming 8 11-21-2005 05:37 PM
Macros Twi7ch Linux - General 2 08-27-2005 10:37 PM
kernel boot prameters - where defined? enlight1 Linux - Newbie 2 12-24-2003 01:01 AM


All times are GMT -5. The time now is 08:18 PM.

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