lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5328299C.10807@ladisch.de>
Date:	Tue, 18 Mar 2014 12:10:20 +0100
From:	Clemens Ladisch <clemens@...isch.de>
To:	noman pouigt <variksla@...il.com>
CC:	linux-kernel@...r.kernel.org
Subject: Re: atomic read and increment question

noman pouigt wrote:
> x = 1;
> temp = atomic_read_increment(x);

atomic_set(&x, 1);
temp = atomic_inc_return(&x);

> I looked through the documentation for atomic
> operations but couldn't find out the api

Not everything is fully documented.

Look through include/asm-generic/atomic.h.


Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ