mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Leon Woestenberg <leon.woestenberg@gmail.com>
To: Steve Rottinger <steve@pentek.com>
Cc: linux-kernel@vger.kernel.org, leon@sidebranch.com
Subject: Re: O_DIRECT splice from PCI-resident buffer to filesystem
Date: Wed, 3 Jun 2009 12:25:12 +0200	[thread overview]
Message-ID: <c384c5ea0906030325q437a299dkf65d47f7f9956f8a@mail.gmail.com> (raw)
In-Reply-To: <4A202FF3.2090600@pentek.com>

Steve,

On Fri, May 29, 2009 at 8:56 PM, Steve Rottinger <steve@pentek.com> wrote:
> After some work, and kernel hacking, and thanks to Jens'
> O_DIRECT/blockio splicing
> patch,  I have been successful in using splice to transfer data directly
> from a buffer
> resident on a PCI device to a raw disk partition, with zero copies. Great!
>

As we have no in-kernel character devices with splice_read/write
capability (other than /dev/null and maybe zero) *AFAIK*,
I would like to adapt my driver in staging/ to support splice_read()/write().

The difference is that my PCIe driver (altpciechdma.c) performs DMA
into a scattered set of pages. These pages are then
splice()d over.

Could you share the splice part of your driver for this purpose, so
that I can add splice_read() with less effort?

Regards,
-- 
Leon

      reply	other threads:[~2009-06-03 10:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-29 18:56 Steve Rottinger
2009-06-03 10:25 ` Leon Woestenberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c384c5ea0906030325q437a299dkf65d47f7f9956f8a@mail.gmail.com \
    --to=leon.woestenberg@gmail.com \
    --cc=leon@sidebranch.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=steve@pentek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®