Date: Sun, 14 Jun 1998 22:30:33 +0100 From: Brian Somers <brian@Awfulhak.org> To: Julian Elischer <julian@whistle.com> Cc: current@FreeBSD.ORG Subject: Re: RFC: Change to the device interface Message-ID: <199806142130.WAA27843@awfulhak.org> In-Reply-To: Your message of "Sun, 14 Jun 1998 13:13:37 PDT." <Pine.BSF.3.95.980614130923.6386D-100000@current1.whistle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
<http://www.Awfulhak.org>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806142130.WAA27843>
