19 #include <linux/errno.h>
20 #include <linux/module.h>
21 #include <linux/kernel.h>
23 #include <linux/net.h>
24 #include <linux/in6.h>
25 #include <asm/uaccess.h>
26 #include <asm/byteorder.h>
109 for (; len > 0; ++iov) {
160 while (offset >= iov->
iov_len) {
167 int copy =
min_t(
unsigned int, len, iov->
iov_len - offset);
193 int partial_cnt = 0,
err = 0;
196 while (offset >= iov->
iov_len) {
203 int copy =
min_t(
unsigned int, len, iov->
iov_len - offset);
209 int par_len = 4 - partial_cnt;
212 if (par_len > copy) {
237 partial_cnt = copy % 4;
252 len -= copy + partial_cnt;
253 kdata += copy + partial_cnt;