Subject: Re: contiguous memory allocation
To: Anil Gopinath <anil_public@yahoo.com>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: port-i386
Date: 05/17/2003 13:05:58
On Wednesday, May 14, 2003, at 06:01  PM, Anil Gopinath wrote:

> I am trying to allocate a large chunk of contiguous non-swappable=20
> memory from a pseudo device driver. How would=A0you do this without=20
> using the bus_dma api?

You'd have to call the low-level VM interfaces directly.  Look at the=20
bus_dmamem_alloc() and bus_dmamem_map() implementations for i386.

But I strongly suggest you use the bus_dma API ... any reason why you=20
don't want to do so?

         -- Jason R. Thorpe <thorpej@wasabisystems.com>