Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jun 1999 18:38:47 -0500 (EST)
From:      Alfred Perlstein <bright@rush.net>
To:        hackers@freebsd.org
Subject:   pseudo kernel dma/tee
Message-ID:  <Pine.BSF.3.96.990627183049.14320O-100000@cygnus.rush.net>

next in thread | raw e-mail | index | archive | help

Is there any support or plans for support of "kernel dma",
sort of like the aio stuff, however you just give the kernel
two file descriptors and perhaps some parameters (such as
seeking to a specific point on either or both files and
amount of data to be sent) and
the kernel will then do all the copying for you?

You could avoid a lot of work when doing proxy like
connections this way..

This would be like sendfile() however it would be possible 
to mix socket+socket or fd+fd.

Another interesting application would be to implement this
with an option of tee'ing the transfer into the process'
address space as well.

Just something that popped into my head while writing a 
mini proxy today...  It would save a lot of cycles for
certain apps.
 
-Alfred Perlstein - [bright@rush.net|bright@wintelcom.net] 
systems administrator and programmer
    Win Telecom - http://www.wintelcom.net/



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990627183049.14320O-100000>