Subject: Re: Kernel memory allocation
To: Park Chan-youn <phygeeks@gmail.com>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: tech-kern
Date: 02/08/2005 21:04:51
On Mon, Feb 07, 2005 at 11:32:13AM +0900, Park Chan-youn wrote:
> It will be true, as you expects, that I'm doing some wrong 'freeing' - 
> but it's not evident what is wrong, because vmstat(8) tells USB device 
> does not have the allocated memory any longer after freeing the memory.

> 3)And again, could you tell me where can I find some good examples using 
>   malloc(9) and free(9)?

What do you use the malloc/free memory for? For some kind of DMA?
Do you do the correct bus_dmamap_load/unload properly?

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.cz/
-=- We can walk our road together if our goals are all the same;     -=-
-=- We can run alone and free if we pursue a different aim.          -=-