From: "sankar" <san_madhav@hotmail.com>
To: "Perez-Gonzalez, Inaky" <inaky.perez-gonzalez@intel.com>,
<linux-kernel@vger.kernel.org>
Subject: Re: Question on atomic_inc/dec
Date: Tue, 14 Oct 2003 14:34:55 -0700 [thread overview]
Message-ID: <Sea2-DAV3c098V4p7Jl00002e3e@hotmail.com> (raw)
In-Reply-To: A20D5638D741DD4DBAAB80A95012C0AED78649@orsmsx409.jf.intel.com
Thx for the reply...
The definition for atomic_inc() used to be there in asm/atomic.h on redhat
versions 7.2..
But on redhat ver 9.0 asm/atomic.h does not have the definition for
atomic_inc().
Is it moved to anyother file on redhat 9.0??
Pls reply...
----- Original Message -----
From: "Perez-Gonzalez, Inaky" <inaky.perez-gonzalez@intel.com>
To: "sankar" <san_madhav@hotmail.com>; <linux-kernel@vger.kernel.org>
Sent: Tuesday, October 14, 2003 2:17 PM
Subject: RE: Question on atomic_inc/dec
> 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)
next prev parent reply other threads:[~2003-10-14 21:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-14 21:17 Question on atomic_inc/dec Perez-Gonzalez, Inaky
2003-10-14 21:34 ` sankar [this message]
2003-10-14 21:44 ` Tim Hockin
2003-10-14 22:35 ` David S. Miller
2003-10-15 7:57 ` Arjan van de Ven
-- strict thread matches above, loose matches on Subject: below --
2003-10-15 17:38 Perez-Gonzalez, Inaky
2003-10-14 22:29 Perez-Gonzalez, Inaky
2003-10-15 17:28 ` sankar
2003-10-14 18:38 sankar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Sea2-DAV3c098V4p7Jl00002e3e@hotmail.com \
--to=san_madhav@hotmail.com \
--cc=inaky.perez-gonzalez@intel.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox