X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fscatterlist.h;h=71fc8136004892903bebc866f5aee249e0de06d7;hb=13c48c490208d9e70d8d66d56f96c5054db69af7;hp=a3d567a974e8319de915ebf48423a434fca3880f;hpb=8d01eddf292dcd78b640418c80fb300532799cd4;p=linux-2.6 diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h index a3d567a974..71fc813600 100644 --- a/include/linux/scatterlist.h +++ b/include/linux/scatterlist.h @@ -213,6 +213,11 @@ int __sg_alloc_table(struct sg_table *, unsigned int, unsigned int, gfp_t, sg_alloc_fn *); int sg_alloc_table(struct sg_table *, unsigned int, gfp_t); +size_t sg_copy_from_buffer(struct scatterlist *sgl, unsigned int nents, + void *buf, size_t buflen); +size_t sg_copy_to_buffer(struct scatterlist *sgl, unsigned int nents, + void *buf, size_t buflen); + /* * Maximum number of entries that will be allocated in one piece, if * a list larger than this is required then chaining will be utilized.