Subject: Re: kern/32342: OpenBSD firmware loading framework
To: Jason Thorpe <thorpej@shagadelic.org>
From: Iain Hibbert <plunky@rya-online.net>
List: netbsd-bugs
Date: 12/20/2005 01:24:40
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