Subject: Re: physically contiguous memory
To: Marcus Comstedt <marcus@idonex.se>
From: Thor Lancelot Simon <tls@rek.tjls.com>
List: tech-kern
Date: 03/25/2001 20:22:48
On Mon, Mar 26, 2001 at 12:33:32AM +0200, Marcus Comstedt wrote:
> >>>>> "Emmanuel" == Emmanuel Dreyfus <p99dreyf@criens.u-psud.fr> writes:
>
> Emmanuel> How do I allocate physically contiguous memory? I don't find anything
> Emmanuel> about this in malloc(9)...
>
> You have to use uvm_pglistalloc(). Something like this:
That's almost certainly a *very* bad idea.
For any purpose I can think of, you should be using bus_dmamem_alloc.