summaryrefslogtreecommitdiffstats
path: root/lib/scatterlist.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2010-08-10 02:20:56 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-10 05:45:09 +0200
commitea98eed9bcb62d1319db8b1210712c6a110a886c (patch)
treefa394336975862de7a1ca99f890eac4d3098356f /lib/scatterlist.c
parentlib: vsprintf: useless strlen() removed (diff)
downloadlinux-ea98eed9bcb62d1319db8b1210712c6a110a886c.tar.xz
linux-ea98eed9bcb62d1319db8b1210712c6a110a886c.zip
flex_array: add helpers to get and put to make pointers easy to use
Getting and putting arrays of pointers with flex arrays is a PITA. You have to remember to pass &ptr to the _put and you have to do weird and wacky casting to get the ptr back from the _get. Add two functions flex_array_get_ptr() and flex_array_put_ptr() to handle all of the magic. [akpm@linux-foundation.org: simplification suggested by Joe] Signed-off-by: Eric Paris <eparis@redhat.com> Cc: David Rientjes <rientjes@google.com> Cc: Dave Hansen <dave@linux.vnet.ibm.com> Cc: Joe Perches <joe@perches.com> Cc: James Morris <jmorris@namei.org> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/scatterlist.c')
0 files changed, 0 insertions, 0 deletions