From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262429AbTJNV5v (ORCPT ); Tue, 14 Oct 2003 17:57:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262536AbTJNV5v (ORCPT ); Tue, 14 Oct 2003 17:57:51 -0400 Received: from hockin.org ([66.35.79.110]:58380 "EHLO www.hockin.org") by vger.kernel.org with ESMTP id S262429AbTJNV5u (ORCPT ); Tue, 14 Oct 2003 17:57:50 -0400 Date: Tue, 14 Oct 2003 14:44:37 -0700 From: Tim Hockin To: "Perez-Gonzalez, Inaky" Cc: sankar , linux-kernel@vger.kernel.org Subject: Re: Question on atomic_inc/dec Message-ID: <20031014214437.GA30302@hockin.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 14, 2003 at 02:17:49PM -0700, Perez-Gonzalez, Inaky wrote: > 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. Is there any reason NOT to use the atomic ops in user-space? I mean, are they privileged on some architectures, or ...? It seems like some user-space apps might really benefit from simple atomic ops. Or at least, kernel-coders writing in userspace could sure use simple atomic ops :) Tim -- Notice that as computers are becoming easier and easier to use, suddenly there's a big market for "Dummies" books. Cause and effect, or merely an ironic juxtaposition of unrelated facts?