Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 24 Feb 2002 20:11:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 24 Feb 2002 20:10:58 -0500 Received: from [202.135.142.194] ([202.135.142.194]:55826 "EHLO haven.ozlabs.ibm.com") by vger.kernel.org with ESMTP id ; Sun, 24 Feb 2002 20:10:46 -0500 From: Rusty Russell To: Linus Torvalds Cc: mingo@elte.hu, Matthew Kirkwood , Benjamin LaHaise , David Axmark , William Lee Irwin III , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Lightweight userspace semaphores... In-Reply-To: Your message of "Sun, 24 Feb 2002 15:48:58 -0800." Date: Mon, 25 Feb 2002 12:10:34 +1100 Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org In message you wr ite: > > > On Mon, 25 Feb 2002, Rusty Russell wrote: > > > > > > sys_sem_create() > > > sys_sem_destroy() > > > > There is no create and destroy (init is purely userspace). There is > > "this is a semapore: up it". This is a feature. > > You have to realize that there are architectures that need special > initialization and page allocation for semaphores: they need special flags > in the TLB for "careful access", for example (sometimes the careful access > ends up being non-cached). Bugger. How about: sys_sem_area(void *pagestart, size_t len) sys_unsem_area(void *pagestart, size_t len) Is that sufficient? Is sys_unsem_area required at all? TDB has an arbitrary number of semaphores in the mmap file... Rusty. -- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - 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/