need help with kmap_atomic() behavior

From: Hari Hara Kumar M
Date: Sat Jun 16 2007 - 17:52:36 EST


Hello

We are mapping struct page ptrs from scattergather list entries using
kmap_atomic(page_ptr, KM_USER0) to get the virtual address for doing a
copy to work around some alignment restrictions in our driver.

If the first entry in the scatterlist has length > 4k (say 11k) and has
an offset of 1k then, will kmap of the struct page ptr in this
scattergather entry map all of the relevant pages (3 in this case for
11k) needed to cover this sg entry?

Thanks in advance.
-Hari


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/