Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 19 Apr 2001 16:50:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 19 Apr 2001 16:50:00 -0400 Received: from neon-gw.transmeta.com ([209.10.217.66]:44038 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Thu, 19 Apr 2001 16:49:47 -0400 Date: Thu, 19 Apr 2001 13:49:05 -0700 (PDT) From: Linus Torvalds To: Ulrich Drepper cc: Alexander Viro , Abramo Bagnara , Alon Ziv , Kernel Mailing List , Mike Kravetz Subject: Re: light weight user level semaphores In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 19 Apr 2001, Ulrich Drepper wrote: > Linus Torvalds writes: > > > Looks good to me. Anybody want to try this out and test some benchmarks? > > I fail to see how this works across processes. It's up to FS_create() to create whatever shared mapping is needed. For threads, you don't need anything special. For fork()'d helper stuff, you'd use MAP_ANON | MAP_SHARED. For execve(), you need shm shared memory or MAP_SHARED on a file. It all depends on your needs. Linus - 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/