From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 3 09:38:03 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07970106564A for ; Mon, 3 Oct 2011 09:38:03 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id C4DB78FC13 for ; Mon, 3 Oct 2011 09:38:02 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:906c:6af3:5301:18c6]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 6B8FF4AC1C for ; Mon, 3 Oct 2011 13:38:01 +0400 (MSD) Date: Mon, 3 Oct 2011 13:37:54 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <558829232.20111003133754@serebryakov.spb.ru> To: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: Subject: Atomic increment and get? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2011 09:38:03 -0000 Hello, Hackers. Is here atomic increment and get (or add and get) operation in kernel? I cannot find one. Here is atomic_add_32(), but it doesn't return result. And here is no atomic_add_64() on 32 bit system :( --=20 // Black Lion AKA Lev Serebryakov