Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761567AbZDSQRT (ORCPT ); Sun, 19 Apr 2009 12:17:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760310AbZDSQRH (ORCPT ); Sun, 19 Apr 2009 12:17:07 -0400 Received: from yx-out-2324.google.com ([74.125.44.30]:35083 "EHLO yx-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758571AbZDSQRF (ORCPT ); Sun, 19 Apr 2009 12:17:05 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=EcDO5UuPijrkmnNnNUwnTARQVlj/KPbXUhHc1MRosJm1QkXbLixY7vyf0B7ChpYQcn OcddiCJm1y4NH2g+ewkLEmMv9pKKZghT9qn1ThYOQsNqc+bePCNinn54t+nTgTtj5vI7 47H3xmmqASC1EPcacjN9XZDmwfc9LVJNfFfWg= MIME-Version: 1.0 Date: Sun, 19 Apr 2009 18:09:44 +0200 Message-ID: Subject: splice_read() for device drivers? From: Leon Woestenberg To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 786 Lines: 25 Hello, I have a device driver for data acquisition that currently exposes a character device. The device driver performs DMA transfers directly into/from user space on read/write(). If I want the driver to support splicing, must I implement splice_read/write() ops? Can I make them directly DMA into the splice pipe buffer pages? I found no current implementation of splice_read/write(), except for filesystem drivers. Is there a write-up on this or a reference implementation? Any work in progress for LDD4 or such? Regards, -- Leon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/