Re: Question on atomic_inc/dec
Date: Tue Oct 14 2003 - 16:40:23 EST
Thx for the reply...
The definition for atomic_inc() used to be there in asm/atomic.h on redhat
But on redhat ver 9.0 asm/atomic.h does not have the definition for
Is it moved to anyother file on redhat 9.0??
----- Original Message -----
From: "Perez-Gonzalez, Inaky" <inaky.perez-gonzalez@xxxxxxxxx>
To: "sankar" <san_madhav@xxxxxxxxxxx>; <linux-kernel@xxxxxxxxxxxxxxx>
Sent: Tuesday, October 14, 2003 2:17 PM
Subject: RE: Question on atomic_inc/dec
> From: sankar
> I have a question concerning the macro atomic_inc on REDHAT 9.0. I had
> atomic_inc on REDHAT 7.2 earlier. I installed redhat 9.0 and tried to run
> 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
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/