Poul-Henning Kamp wrote:
>
> In message <[EMAIL PROTECTED]>, Matthew Dillon writes:
> > I think the biggest win in regards to being able to arbitrarily stack
> > devices is to NOT attempt to forward struct buf's between devices when
> > non-trivial manipulation is required, and instead to make struct buf's
> > cheap enough that a device can simply allocate a new one and copy the
> > appropriate fields.
> >
> > In particular I really hate all the various b_*blkno fields. b_lblkno,
> > b_blkno, and b_pblkno. It is precisely due to the existance of these
> > hacks that arbitrary device stacking is difficult.
>
> This is basically what the stuff I'm doing addresses.
I have been advocating since 1991 that the memory involved with IO
should be referenced as a vector of page/offset/length
triplets (physical addresses), and that all drivers should take
that as input. IF he driver needs to do programmed IO only then should
it map the page into KV space.
>
> --
> Poul-Henning Kamp FreeBSD coreteam member
> [EMAIL PROTECTED] "Real hackers run -current on their laptop."
> FreeBSD -- It will take a long time before progress goes too far!
--
__--_|\ Julian Elischer
/ \ [EMAIL PROTECTED]
( OZ ) World tour 2000
---> X_.---._/ presently in: Perth
v
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message