LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   How to access 2.6 kernel macros defined under __KERNEL__ (https://www.linuxquestions.org/questions/linux-kernel-70/how-to-access-2-6-kernel-macros-defined-under-__kernel__-491833/)

someshwar 10-12-2006 12:35 PM

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

osor 10-14-2006 11:25 AM

you shouldn't need to unless you are writing a driver. anyway, just define __KERNEL__ somewhere in your code.

someshwar 10-31-2006 11:36 PM

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.


All times are GMT -5. The time now is 01:55 AM.