Re: [PATCH v2 1/2] lib/scatterlist: Add sg_len helper

2015-09-22 Thread Tadeusz Struk
Hi Stephan, On 09/21/2015 10:52 PM, Stephan Mueller wrote: >> /** >> >+ * sg_len - return total size of bytes in the scatterlist >> >+ * @sg: The scatterlist >> >+ * >> >+ * Description: >> >+ * Allows to know how the total size of bytes in sg, taking into account >> >+ * chaining as

[PATCH v2 1/2] lib/scatterlist: Add sg_len helper

2015-09-21 Thread Tadeusz Struk
Add sg_len function which returns the total number of bytes in sg. Signed-off-by: Tadeusz Struk --- include/linux/scatterlist.h |1 + lib/scatterlist.c | 18 ++ 2 files changed, 19 insertions(+) diff --git a/include/linux/scatterlist.h

Re: [PATCH v2 1/2] lib/scatterlist: Add sg_len helper

2015-09-21 Thread Stephan Mueller
Am Montag, 21. September 2015, 16:44:14 schrieb Tadeusz Struk: Hi Tadeusz, >Add sg_len function which returns the total number of bytes in sg. > >Signed-off-by: Tadeusz Struk >--- > include/linux/scatterlist.h |1 + > lib/scatterlist.c | 18