From owner-freebsd-current Sun Jun 14 14:32:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA04005 for freebsd-current-outgoing; Sun, 14 Jun 1998 14:32:05 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA03941 for ; Sun, 14 Jun 1998 14:31:57 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id WAA27843; Sun, 14 Jun 1998 22:30:34 +0100 (BST) (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199806142130.WAA27843@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: Julian Elischer cc: current@FreeBSD.ORG Subject: Re: RFC: Change to the device interface In-reply-to: Your message of "Sun, 14 Jun 1998 13:13:37 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 14 Jun 1998 22:30:33 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > As PHK and others have noted the device interface is broken in a number of > ways: > > Here is a set of suggestions for fixing it > (hopefully in a way that will be minimal impact.) > The message was originally on another topic.. [.....] > A second change would be to make each FILE structure in the kernel > store a cookie that is returned by the open() call to the driver. > this would allow the driver to associate an IO request with a particular > open(). it would be an added arguent to all the devsw[] entrypoints. [.....] I vote for this option. It's the intuitive place to hold state information, despite it not being required by every driver. > julian -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message