LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 12: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, 11:25 AM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
you shouldn't need to unless you are writing a driver. anyway, just define __KERNEL__ somewhere in your code.
 
Old 10-31-2006, 11:36 PM   #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 05:16 AM.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:28 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
Open Source Consulting | Domain Registration