Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107184361
D36098.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
718 B
Referenced Files
None
Subscribers
None
D36098.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D36098: linuxkpi: Add for_each_sgtable_{sg,page}
Attached
Detach File
Event Timeline
Log In to Comment