From owner-freebsd-smp Thu Dec 7 13:14:34 2000 From owner-freebsd-smp@FreeBSD.ORG Thu Dec 7 13:14:32 2000 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from net2.gendyn.com (nat2.gendyn.com [204.60.171.12]) by hub.freebsd.org (Postfix) with ESMTP id 7971E37B400 for ; Thu, 7 Dec 2000 13:14:32 -0800 (PST) Received: from [153.11.11.3] (helo=plunger.gdeb.com) by net2.gendyn.com with esmtp (Exim 2.12 #1) id 1448Mq-0002ui-00 for smp@freebsd.org; Thu, 7 Dec 2000 16:14:16 -0500 Received: from orion.caen.gdeb.com ([153.11.109.11]) by plunger.gdeb.com with ESMTP id QAA14547 for ; Thu, 7 Dec 2000 16:10:05 -0500 (EST) Received: from vigrid.com (gpz.clc.gdeb.com [192.168.3.12]) by orion.caen.gdeb.com (8.9.3/8.9.3) with ESMTP id QAA16440 for ; Thu, 7 Dec 2000 16:10:26 -0500 (EST) (envelope-from eischen@vigrid.com) Sender: eghk@gdeb.com Message-ID: <3A2FFDD9.F17C1165@vigrid.com> Date: Thu, 07 Dec 2000 16:15:05 -0500 From: Dan Eischen X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.8 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: smp@freebsd.org Subject: Userland atomic assignments Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org What kind of atomic operations can we get in userland? If I have a singly linked list, where nodes are only added to the head or the tail and they are never removed, can I walk the list without fear of catching a bad head or node->next (when I'm at the end of the list) pointer? In other words, can I get an atomic_set_ptr() operation on each platform? I can also see the need for an atomic_set_int32() operation. Thanks, -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message