Re: Problem with DMA buffer (in 2.2.15)

Christoph Baumann (baumann@kip.uni-heidelberg.de)
Thu, 22 Feb 2001 18:20:42 +0100


On Thu, Feb 22, 2001 at 05:38:53PM +0100, Norbert Roos wrote:
> Christoph Baumann wrote:
>
> > is to do this in steps of PAGE_SIZE. What I'm looking for is a kernel routine
> > to force the mapping of previous unmapped pages. Browsing through the source
> > in mm/ I found make_pages_present(). Could this be the solution? I hadn't the
>
> Have you already looked at mlock(2)?

Well I would have done all this (mlock, alloc buffer in kernel space and map it to user space etc.). But the critical issue is that all should be code compatible to Win (ducking away...). The API under Win allows chain DMA from user space
so the program which was initially developed under Win uses this feature. My
module needs to jump in to support this. Another problem is that the buffer
is often reallocated.

Christoph

-- 
**********************************************************
* Christoph Baumann                                      *
* Kirchhoff-Institut für Physik - Uni Heidelberg         *
* Mail: baumann@kip.uni-heidelberg.de                    *
* Phone: ++49-6221-54-4329                               *
**********************************************************

- 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/