lkml.org 
[lkml]   [2003]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: Question on atomic_inc/dec
Date
From
> From: sankar
>
> Hi,
> I have a question concerning the macro atomic_inc on REDHAT 9.0. I had used
> atomic_inc on REDHAT 7.2 earlier. I installed redhat 9.0 and tried to run my
> old code on this. I got the error saying atomic_inc not declared.
>
> I tried to search the header file in which this is defined but with failure.

Seems you were using a kernel definition of a function (this
normally happens only because it was out there by mistake,
or because you had __KERNEL__ #defined).

It will be in include/asm/atomic.h; however, it is not wise to
use directly the kernel stuff unless you are coding kernel stuff.

You can always strip them, of course :)

Iñaky Pérez-González -- Not speaking for Intel -- all opinions are my own (and my fault)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.632 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site