Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 25 Feb 2002 12:08:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 25 Feb 2002 12:08:08 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:43531 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Mon, 25 Feb 2002 12:07:58 -0500 Date: Mon, 25 Feb 2002 09:06:15 -0800 (PST) From: Linus Torvalds To: Alan Cox cc: Rusty Russell , , Matthew Kirkwood , Benjamin LaHaise , David Axmark , William Lee Irwin III , Subject: Re: [PATCH] Lightweight userspace 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 Mon, 25 Feb 2002, Alan Cox wrote: > > > fd = open("/dev/shm/sem...."); > > > > Hmm.. Yes. Except I would allow a NULL backing store name for the > > normal(?) case of just wanting private anonymous memory. > > unlink() Sure, but that, together with making up a unique temporary name etc just adds extra overhead for no actual gain. > > At the same time, I have to admit that I like the notion that Rusty had of > > libraries being able to just put their semaphores anywhere (on the stack > > etc), as it does work for many architectures. Ugh. > > _alloca > mmap > > Still fits on the stack 8) .. but is slow as hell. 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/