Re: [PATCH 1/4] scatterlist: new helper functions

From: Alex Dubov
Date: Mon Jan 10 2011 - 21:58:59 EST


>
> The functions that were added:
>
> * sg_nents/sg_total_len - interate over sg list to figure

You've got a typo here.

> out its total len, number of entries.
> Useful for not keeping that information in side channels.
>

> Allows to transparetly compare contents of the sg list to
> given linear

And here.

> buffer.
> If needed later, a function that compares two sgs can be
> added.
>
> All of this code is used by my ms_block.c driver.
>

I definitely find this useful.
But, of course, we need to ask somebody from the memory management
department to look at it, as this patch is intended to be not memorystick
specific.






--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/