From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 22 May 2001 11:39:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 22 May 2001 11:39:34 -0400 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:4108 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id ; Tue, 22 May 2001 11:39:27 -0400 Date: Tue, 22 May 2001 16:38:30 +0100 From: Matthew Wilcox To: Alan Cox Cc: Matthew Wilcox , Linus Torvalds , Ingo Oeser , Alexander Viro , Pavel Machek , Richard Gooch , Andrew Clausen , Ben LaHaise , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [RFD w/info-PATCH] device arguments from lookup, partion code Message-ID: <20010522163830.O23718@parcelfarce.linux.theplanet.co.uk> In-Reply-To: <20010522163135.N23718@parcelfarce.linux.theplanet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from alan@lxorguk.ukuu.org.uk on Tue, May 22, 2001 at 04:31:37PM +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 22, 2001 at 04:31:37PM +0100, Alan Cox wrote: > > `the class of devices in question' was cryptographic devices, and possibly > > other transactional DSPs. I don't consider audio to be transactional. > > in any case, you can do transactional things with two threads, as long > > as they each have their own fd on the device. Think of the fd as your > > transaction handle. > > Thats a bit pathetic. So I have to fill my app with expensive pthread locks > or hack all the drivers and totally change the multi-open sematics in the ABI huh? void thread_init(void) { int fd = open("/dev/crypto"); real_thread_init(fd); } where was that lock again? and notice this idea is only for transactional things -- what transactional things do sound drivers do? -- Revolutions do not require corporate support.