Regarding consistent_alloc

Dan Malek dan at embeddededge.com
Sat Dec 7 03:56:22 EST 2002


Matt Porter wrote:

 > ....  If you
> want the kernel virtual address then you can apply __va to that.

Errr....no, you can't.  That would give you the cached mapping.
You need to hang on to both the dma_handle (the phys address token)
and the virtual address returned by the function.  That's why both
are returned.


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list