git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/scatterlist: add a flags to signalize mapping direction
[safe/jmp/linux-2.6]
/
include
/
linux
/
scatterlist.h
diff --git
a/include/linux/scatterlist.h
b/include/linux/scatterlist.h
index
e599698
..
9aaf5bf
100644
(file)
--- a/
include/linux/scatterlist.h
+++ b/
include/linux/scatterlist.h
@@
-242,6
+242,8
@@
size_t sg_copy_to_buffer(struct scatterlist *sgl, unsigned int nents,
*/
#define SG_MITER_ATOMIC (1 << 0) /* use kmap_atomic */
*/
#define SG_MITER_ATOMIC (1 << 0) /* use kmap_atomic */
+#define SG_MITER_TO_SG (1 << 1) /* flush back to phys on unmap */
+#define SG_MITER_FROM_SG (1 << 2) /* nop */
struct sg_mapping_iter {
/* the following three fields can be accessed directly */
struct sg_mapping_iter {
/* the following three fields can be accessed directly */