Subject: Re: kern/32342: OpenBSD firmware loading framework
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Iain Hibbert <plunky@rya-online.net>
List: netbsd-bugs
Date: 12/20/2005 01:35:02
The following reply was made to PR kern/32342; it has been noted by GNATS.
From: Iain Hibbert <plunky@rya-online.net>
To: Jason Thorpe <thorpej@shagadelic.org>
Cc: gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,
gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/32342: OpenBSD firmware loading framework
Date: Tue, 20 Dec 2005 01:24:40 +0000 (GMT)
On Mon, 19 Dec 2005, Jason Thorpe wrote:
> I'm thinking more like:
>
> error = firmware_open("cz", ..., &handle);
> ...
> error = firmware_read(handle, offset, buf, buflen);
> ...
> error = firmware_close(handle);
>
> Driver allocates and frees its own buffers. Perhaps we provide
> firmware_*() routines for buffer management (pageable vs. non-pageable
> memory, etc.)
on the one hand this looks very complex..
on the other hand, this starts to become very similar to vnsubr(9) and
could be quite simple..
iain