Lines Matching refs:iov
91 static size_t iov_length(const struct iovec *iov, size_t count)
97 ret += iov[seg].iov_len;
167 struct iovec *iov, int count)
169 struct fuse_out_header *out = iov[0].iov_base;
172 out->len = iov_length(iov, count);
193 res = se->io->writev(ch ? ch->fd : se->fd, iov, count,
196 res = writev(ch ? ch->fd : se->fd, iov, count);
211 int fuse_send_reply_iov_nofree(fuse_req_t req, int error, struct iovec *iov,
229 iov[0].iov_base = &out;
230 iov[0].iov_len = sizeof(struct fuse_out_header);
232 return fuse_send_msg(req->se, req->ch, iov, count);
235 static int send_reply_iov(fuse_req_t req, int error, struct iovec *iov,
240 res = fuse_send_reply_iov_nofree(req, error, iov, count);
248 struct iovec iov[2];
251 iov[1].iov_base = (void *) arg;
252 iov[1].iov_len = argsize;
255 return send_reply_iov(req, error, iov, count);
258 int fuse_reply_iov(fuse_req_t req, const struct iovec *iov, int count)
267 memcpy(padded_iov + 1, iov, count * sizeof(struct iovec));
495 struct iovec *iov, int iov_count,
509 iov[iov_count].iov_base = buf->buf[0].mem;
510 iov[iov_count].iov_len = len;
512 return fuse_send_msg(se, ch, iov, iov_count);
527 iov[iov_count].iov_base = mbuf;
528 iov[iov_count].iov_len = len;
530 res = fuse_send_msg(se, ch, iov, iov_count);
660 struct iovec *iov, int iov_count,
665 struct fuse_out_header *out = iov[0].iov_base;
698 headerlen = iov_length(iov, iov_count);
725 res = vmsplice(llp->pipe[1], iov, iov_count, SPLICE_F_NONBLOCK);
810 iov[iov_count].iov_base = mbuf;
811 iov[iov_count].iov_len = len;
813 res = fuse_send_msg(se, ch, iov, iov_count);
860 return fuse_send_data_iov_fallback(se, ch, iov, iov_count, buf, len);
864 struct iovec *iov, int iov_count,
870 return fuse_send_data_iov_fallback(se, ch, iov, iov_count, buf, len);
877 struct iovec iov[2];
881 iov[0].iov_base = &out;
882 iov[0].iov_len = sizeof(struct fuse_out_header);
887 res = fuse_send_data_iov(req->se, req->ch, iov, 1, bufv, flags);
945 static struct fuse_ioctl_iovec *fuse_ioctl_iovec_copy(const struct iovec *iov,
956 fiov[i].base = (uintptr_t) iov[i].iov_base;
957 fiov[i].len = iov[i].iov_len;
970 struct iovec iov[4];
978 iov[count].iov_base = &arg;
979 iov[count].iov_len = sizeof(arg);
984 iov[count].iov_base = (void *)in_iov;
985 iov[count].iov_len = sizeof(in_iov[0]) * in_count;
990 iov[count].iov_base = (void *)out_iov;
991 iov[count].iov_len = sizeof(out_iov[0]) * out_count;
1006 iov[count].iov_base = (void *)in_fiov;
1007 iov[count].iov_len = sizeof(in_fiov[0]) * in_count;
1015 iov[count].iov_base = (void *)out_fiov;
1016 iov[count].iov_len = sizeof(out_fiov[0]) * out_count;
1021 res = send_reply_iov(req, 0, iov, count);
1036 struct iovec iov[3];
1041 iov[count].iov_base = &arg;
1042 iov[count].iov_len = sizeof(arg);
1046 iov[count].iov_base = (char *) buf;
1047 iov[count].iov_len = size;
1051 return send_reply_iov(req, 0, iov, count);
1054 int fuse_reply_ioctl_iov(fuse_req_t req, int result, const struct iovec *iov,
1070 memcpy(&padded_iov[2], iov, count * sizeof(struct iovec));
2259 struct iovec *iov, int count)
2268 iov[0].iov_base = &out;
2269 iov[0].iov_len = sizeof(struct fuse_out_header);
2271 return fuse_send_msg(se, NULL, iov, count);
2278 struct iovec iov[2];
2282 iov[1].iov_base = &outarg;
2283 iov[1].iov_len = sizeof(outarg);
2285 return send_notify_iov(ph->se, FUSE_NOTIFY_POLL, iov, 2);
2295 struct iovec iov[2];
2307 iov[1].iov_base = &outarg;
2308 iov[1].iov_len = sizeof(outarg);
2310 return send_notify_iov(se, FUSE_NOTIFY_INVAL_INODE, iov, 2);
2337 struct iovec iov[3];
2351 iov[1].iov_base = &outarg;
2352 iov[1].iov_len = sizeof(outarg);
2353 iov[2].iov_base = (void *)name;
2354 iov[2].iov_len = namelen + 1;
2356 return send_notify_iov(se, FUSE_NOTIFY_INVAL_ENTRY, iov, 3);
2383 struct iovec iov[3];
2396 iov[1].iov_base = &outarg;
2397 iov[1].iov_len = sizeof(outarg);
2398 iov[2].iov_base = (void *)name;
2399 iov[2].iov_len = namelen + 1;
2401 return send_notify_iov(se, FUSE_NOTIFY_DELETE, iov, 3);
2410 struct iovec iov[3];
2428 iov[0].iov_base = &out;
2429 iov[0].iov_len = sizeof(out);
2430 iov[1].iov_base = &outarg;
2431 iov[1].iov_len = sizeof(outarg);
2433 res = fuse_send_data_iov(se, NULL, iov, 2, bufv, flags);
2488 struct iovec iov[2];
2515 iov[1].iov_base = &outarg;
2516 iov[1].iov_len = sizeof(outarg);
2518 err = send_notify_iov(se, FUSE_NOTIFY_RETRIEVE, iov, 2);
2694 struct iovec iov = {
2699 fuse_send_msg(se, ch, &iov, 1);