From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pz0-f51.google.com (mail-pz0-f51.google.com [209.85.210.51]) by ozlabs.org (Postfix) with ESMTP id 1D4BBB70B4 for ; Wed, 11 Aug 2010 16:09:28 +1000 (EST) Received: by pzk5 with SMTP id 5so5474530pzk.38 for ; Tue, 10 Aug 2010 23:09:27 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 11 Aug 2010 11:39:26 +0530 Message-ID: Subject: DMA transfer within kernel space From: Ravi Gupta To: linuxppc-dev@lists.ozlabs.org, linuxppc-dev@ozlabs.org Content-Type: multipart/alternative; boundary=001636458c7e8be229048d86171a List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --001636458c7e8be229048d86171a Content-Type: text/plain; charset=ISO-8859-1 Hi, I am new to linux device driver development and I'm trying to learn the DMA transfer. Currently I have created a DMA buffer using pci_alloc_consistent() function. Since I don't have a real DMA enabled pci device, so I am thinking of transfer the data in the DMA buffer to some other buffer within kernel space(let say created through kmalloc) using DMA. Is it possible to do DMA transfer within kernel space? If yes, please provide some sample code for the same. Thanks in advance Ravi Gupta --001636458c7e8be229048d86171a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I am new to linux device driver development and I'm trying t= o learn the
DMA transfer. Currently I have created a=A0 DMA buffer using= pci_alloc_consistent() function. Since I don't have a real DMA enabled= pci device, so I am thinking of transfer the data in the DMA buffer to som= e other buffer within kernel space(let say created through kmalloc) using D= MA.=A0

Is it possible to do DMA transfer within kernel space? If yes, please p= rovide some sample code for the same.

Thanks in advance
Ravi Gupt= a
--001636458c7e8be229048d86171a--