Subject: Re: physically contiguous memory
To: Marcus Comstedt <email@example.com>
From: Thor Lancelot Simon <firstname.lastname@example.org>
Date: 03/25/2001 20:22:48
On Mon, Mar 26, 2001 at 12:33:32AM +0200, Marcus Comstedt wrote:
> >>>>> "Emmanuel" == Emmanuel Dreyfus <email@example.com> 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.