From owner-freebsd-hackers Sun Jun 27 16:35:32 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from cygnus.rush.net (cygnus.rush.net [209.45.245.133]) by hub.freebsd.org (Postfix) with ESMTP id BBFE214E84 for ; Sun, 27 Jun 1999 16:35:21 -0700 (PDT) (envelope-from bright@rush.net) Received: from localhost (bright@localhost) by cygnus.rush.net (8.9.3/8.9.3) with SMTP id TAA17805 for ; Sun, 27 Jun 1999 19:38:48 -0400 (EDT) Date: Sun, 27 Jun 1999 18:38:47 -0500 (EST) From: Alfred Perlstein To: hackers@freebsd.org Subject: pseudo kernel dma/tee Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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