lkml.org 
[lkml]   [2003]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [OT] Question on atomic_inc/dec
On Wed, Oct 15, 2003 at 10:38:14AM -0700, Perez-Gonzalez, Inaky wrote:
> > From: sankar [mailto:san_madhav@hotmail.com]
>
> > any solution to the original problem???
> > (atomic_inc() defintion not there in redhat 9.0 asm/atomic.h)
>
> Create an atomic.h header file in your source tree with the code
> below, but bear in mind that porting to other arches might be painful:

It is OT, but if you are interested, take a look at include/private/*atomic*,
include/private/*/*atomic* and relevant portions (ncphost) of configure.ac
in the ncpfs package (http://platan.vc.cvut.cz/ftp/pub/linux/ncpfs/ncpfs-2.2.3.tar.gz).

It contains UP, pthread based, and several asm optimized versions of
atomic ops. I'm not 100% sure that all asm versions work correctly,
but I have received no complaints yet...
Best regards,
Petr Vandrovec
vandrove@vc.cvut.cz

-
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.080 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site