Re: Kernel hacking ? - Can this be done?

Steve Dodd (dirk@loth.demon.co.uk)
Fri, 30 Jul 1999 23:14:24 +0100


On Fri, Jul 30, 1999 at 10:40:46PM +0200, Arjan van de Ven wrote:

> > Does that mean you're doing a kernel space -> kernel space copy?
> Yes.

> > Couldn't you just nick the data straight from the page cache?

> That is possible too, in fact, I am adding this to kHTTPd right now. For
> non-performance critical tasks, this is WAY to much pain though, since this
> will only work for most filesystems (the f_ops->read works for ALL sane
> filesystems), and proper locking isn't easy either.

If instead of the current f_ops->read, filesystems exported a function which
could take something similar to a read_actor_t, you could use that. I think.
I need to think about this a bit more..

-- 
"Apathy is not the problem, it's the solution"

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/