lkml.org 
[lkml]   [2007]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subjectneed help with kmap_atomic() behavior
From
Date
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-06-16 23:55    [W:0.068 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site