]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib/scatterlist: add simple page iterator
authorImre Deak <imre.deak@intel.com>
Wed, 20 Feb 2013 02:15:33 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:19 +0000 (16:53 +1100)
commit927664a09d9e3365ee5c92c02398864410784d31
treeec71965b2138c1b74fac949736f5193d01f597b6
parentd2bb8668b69813c93354ca38948c195796aca2b2
lib/scatterlist: add simple page iterator

Add an iterator to walk through a scatter list a page at a time starting
at a specific page offset.  As opposed to the mapping iterator this is
meant to be small, performing well even in simple loops like collecting
all pages on the scatterlist into an array or setting up an iommu table
based on the pages' DMA address.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/scatterlist.h
lib/scatterlist.c