Subject: Re: M_EXT_PAGES
To: Perry E. Metzger <>
From: Jonathan Stone <>
List: tech-kern
Date: 06/06/2004 11:06:25
In message <>,
"Perry E. Metzger" writes:

>I really wish we had sendfile(). :(

You mean we still don't?

senfile is what I first developed a kcont(9)-like framework for.  If
we had UMC-style ops to say:

  ``here's a struct buf,
    please wrap the contents in an external mbuf,
    mark the mbuf as immutable,
    make sure writes to the buffer cache dont change it''

then its straightforward to implement sendfile() using that,
well-designed in-kernel POSIX-aio APIs, and kcont(9).

Without the buf-to-mbuf-chain ops, you need another copy.