On Sun, 7 Aug 2005, Mike Christie wrote: > Well, iscsi too, but there is the scatterwalk code which the crypto api > uses today and looks similar to what ide, libata, and scsi need. Ok, I see what you mean now. Well, my impression is that one could, certainly, merge the 2 APIs, but this would incur overhead for both usage patterns: crypto traverses the list page / segment at a time, I think, some other block users (IDE?) would need the same; whereas the code I am proposing is optimised for the case when one needs just to map a few bytes from the sg-list, access them, and unmap. Have I got it right? Other opinions? Perhaps, a lib/scattergather.c with these both APIs, and, possibly, others? Thanks Guennadi --- Guennadi Liakhovetski - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html