Re: Distinguish between kernel and user space

2010-08-16 Thread Ira W. Snyder
On Mon, Aug 16, 2010 at 05:52:41PM +0530, Ravi Gupta wrote: > Hi, > > I have defined a header file for ioctls macros definitions. I am including > it in both, my user space application as well as in my device driver. Now > there are some macros that I want to be visible only in device drive and >

Distinguish between kernel and user space

2010-08-16 Thread Ravi Gupta
Hi, I have defined a header file for ioctls macros definitions. I am including it in both, my user space application as well as in my device driver. Now there are some macros that I want to be visible only in device drive and some only in user space application. Is there any set of macros defined