Page MenuHomeFreeBSD

D36098.diff
No OneTemporary

D36098.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/scatterlist.h b/sys/compat/linuxkpi/common/include/linux/scatterlist.h
--- a/sys/compat/linuxkpi/common/include/linux/scatterlist.h
+++ b/sys/compat/linuxkpi/common/include/linux/scatterlist.h
@@ -99,6 +99,12 @@
#define for_each_sg(sglist, sg, sgmax, iter) \
for (iter = 0, sg = (sglist); iter < (sgmax); iter++, sg = sg_next(sg))
+#define for_each_sgtable_sg(sgt, sg, i) \
+ for_each_sg((sgt)->sgl, sg, (sgt)->orig_nents, i)
+
+#define for_each_sgtable_page(sgt, iter, pgoffset) \
+ for_each_sg_page((sgt)->sgl, iter, (sgt)->orig_nents, pgoffset)
+
#define for_each_sgtable_dma_sg(sgt, sg, iter) \
for_each_sg((sgt)->sgl, sg, (sgt)->nents, iter)

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 12, 9:05 AM (21 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15764860
Default Alt Text
D36098.diff (718 B)

Event Timeline