[lkml]   [2006]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [openib-general] [PATCH 08/22] Generic ehca headers
On Fri, Feb 17, 2006 at 04:57:23PM -0800, Roland Dreier wrote:
> From: Roland Dreier <>
> The defines of TRUE and FALSE look rather useless. Why are they needed?
> What is struct ehca_cache for? It doesn't seem to be used anywhere.
> ehca_kv_to_g() looks completely horrible. The whole idea of using
> vmalloc()ed kernel memory to do DMA seems unacceptable to me.

When you want to do scatter-gather dma on kernel-virtual contingous
areas allocate the pages individually and map them into kva using
vmap(). Then dma can be performed using dma_map_page, or in case
you have lots of pages dma_map_sg after creating an S/G list.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-02-18 16:12    [W:0.209 / U:10.396 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site