Lines Matching refs:iov
91 static size_t iov_length(const struct iovec *iov, size_t count) in iov_length() argument
97 ret += iov[seg].iov_len; in iov_length()
166 struct iovec *iov, int count) in fuse_send_msg() argument
168 struct fuse_out_header *out = iov[0].iov_base; in fuse_send_msg()
170 out->len = iov_length(iov, count); in fuse_send_msg()
188 iov, count); in fuse_send_msg()
204 int fuse_send_reply_iov_nofree(fuse_req_t req, int error, struct iovec *iov, in fuse_send_reply_iov_nofree() argument
217 iov[0].iov_base = &out; in fuse_send_reply_iov_nofree()
218 iov[0].iov_len = sizeof(struct fuse_out_header); in fuse_send_reply_iov_nofree()
220 return fuse_send_msg(req->se, req->ch, iov, count); in fuse_send_reply_iov_nofree()
223 static int send_reply_iov(fuse_req_t req, int error, struct iovec *iov, in send_reply_iov() argument
228 res = fuse_send_reply_iov_nofree(req, error, iov, count); in send_reply_iov()
236 struct iovec iov[2]; in send_reply() local
239 iov[1].iov_base = (void *) arg; in send_reply()
240 iov[1].iov_len = argsize; in send_reply()
243 return send_reply_iov(req, error, iov, count); in send_reply()
246 int fuse_reply_iov(fuse_req_t req, const struct iovec *iov, int count) in fuse_reply_iov() argument
255 memcpy(padded_iov + 1, iov, count * sizeof(struct iovec)); in fuse_reply_iov()
486 struct iovec *iov, int iov_count, in fuse_send_data_iov_fallback() argument
500 iov[iov_count].iov_base = buf->buf[0].mem; in fuse_send_data_iov_fallback()
501 iov[iov_count].iov_len = len; in fuse_send_data_iov_fallback()
503 return fuse_send_msg(se, ch, iov, iov_count); in fuse_send_data_iov_fallback()
518 iov[iov_count].iov_base = mbuf; in fuse_send_data_iov_fallback()
519 iov[iov_count].iov_len = len; in fuse_send_data_iov_fallback()
521 res = fuse_send_msg(se, ch, iov, iov_count); in fuse_send_data_iov_fallback()
651 struct iovec *iov, int iov_count, in fuse_send_data_iov() argument
656 struct fuse_out_header *out = iov[0].iov_base; in fuse_send_data_iov()
691 headerlen = iov_length(iov, iov_count); in fuse_send_data_iov()
718 res = vmsplice(llp->pipe[1], iov, iov_count, SPLICE_F_NONBLOCK); in fuse_send_data_iov()
803 iov[iov_count].iov_base = mbuf; in fuse_send_data_iov()
804 iov[iov_count].iov_len = len; in fuse_send_data_iov()
806 res = fuse_send_msg(se, ch, iov, iov_count); in fuse_send_data_iov()
847 return fuse_send_data_iov_fallback(se, ch, iov, iov_count, buf, len); in fuse_send_data_iov()
851 struct iovec *iov, int iov_count, in fuse_send_data_iov() argument
857 return fuse_send_data_iov_fallback(se, ch, iov, iov_count, buf, len); in fuse_send_data_iov()
864 struct iovec iov[2]; in fuse_reply_data() local
868 iov[0].iov_base = &out; in fuse_reply_data()
869 iov[0].iov_len = sizeof(struct fuse_out_header); in fuse_reply_data()
874 res = fuse_send_data_iov(req->se, req->ch, iov, 1, bufv, flags); in fuse_reply_data()
932 static struct fuse_ioctl_iovec *fuse_ioctl_iovec_copy(const struct iovec *iov, in fuse_ioctl_iovec_copy() argument
943 fiov[i].base = (uintptr_t) iov[i].iov_base; in fuse_ioctl_iovec_copy()
944 fiov[i].len = iov[i].iov_len; in fuse_ioctl_iovec_copy()
957 struct iovec iov[4]; in fuse_reply_ioctl_retry() local
965 iov[count].iov_base = &arg; in fuse_reply_ioctl_retry()
966 iov[count].iov_len = sizeof(arg); in fuse_reply_ioctl_retry()
971 iov[count].iov_base = (void *)in_iov; in fuse_reply_ioctl_retry()
972 iov[count].iov_len = sizeof(in_iov[0]) * in_count; in fuse_reply_ioctl_retry()
977 iov[count].iov_base = (void *)out_iov; in fuse_reply_ioctl_retry()
978 iov[count].iov_len = sizeof(out_iov[0]) * out_count; in fuse_reply_ioctl_retry()
993 iov[count].iov_base = (void *)in_fiov; in fuse_reply_ioctl_retry()
994 iov[count].iov_len = sizeof(in_fiov[0]) * in_count; in fuse_reply_ioctl_retry()
1002 iov[count].iov_base = (void *)out_fiov; in fuse_reply_ioctl_retry()
1003 iov[count].iov_len = sizeof(out_fiov[0]) * out_count; in fuse_reply_ioctl_retry()
1008 res = send_reply_iov(req, 0, iov, count); in fuse_reply_ioctl_retry()
1023 struct iovec iov[3]; in fuse_reply_ioctl() local
1028 iov[count].iov_base = &arg; in fuse_reply_ioctl()
1029 iov[count].iov_len = sizeof(arg); in fuse_reply_ioctl()
1033 iov[count].iov_base = (char *) buf; in fuse_reply_ioctl()
1034 iov[count].iov_len = size; in fuse_reply_ioctl()
1038 return send_reply_iov(req, 0, iov, count); in fuse_reply_ioctl()
1041 int fuse_reply_ioctl_iov(fuse_req_t req, int result, const struct iovec *iov, in fuse_reply_ioctl_iov() argument
1057 memcpy(&padded_iov[2], iov, count * sizeof(struct iovec)); in fuse_reply_ioctl_iov()
2204 struct iovec *iov, int count) in send_notify_iov() argument
2213 iov[0].iov_base = &out; in send_notify_iov()
2214 iov[0].iov_len = sizeof(struct fuse_out_header); in send_notify_iov()
2216 return fuse_send_msg(se, NULL, iov, count); in send_notify_iov()
2223 struct iovec iov[2]; in fuse_lowlevel_notify_poll() local
2227 iov[1].iov_base = &outarg; in fuse_lowlevel_notify_poll()
2228 iov[1].iov_len = sizeof(outarg); in fuse_lowlevel_notify_poll()
2230 return send_notify_iov(ph->se, FUSE_NOTIFY_POLL, iov, 2); in fuse_lowlevel_notify_poll()
2240 struct iovec iov[2]; in fuse_lowlevel_notify_inval_inode() local
2252 iov[1].iov_base = &outarg; in fuse_lowlevel_notify_inval_inode()
2253 iov[1].iov_len = sizeof(outarg); in fuse_lowlevel_notify_inval_inode()
2255 return send_notify_iov(se, FUSE_NOTIFY_INVAL_INODE, iov, 2); in fuse_lowlevel_notify_inval_inode()
2262 struct iovec iov[3]; in fuse_lowlevel_notify_inval_entry() local
2274 iov[1].iov_base = &outarg; in fuse_lowlevel_notify_inval_entry()
2275 iov[1].iov_len = sizeof(outarg); in fuse_lowlevel_notify_inval_entry()
2276 iov[2].iov_base = (void *)name; in fuse_lowlevel_notify_inval_entry()
2277 iov[2].iov_len = namelen + 1; in fuse_lowlevel_notify_inval_entry()
2279 return send_notify_iov(se, FUSE_NOTIFY_INVAL_ENTRY, iov, 3); in fuse_lowlevel_notify_inval_entry()
2287 struct iovec iov[3]; in fuse_lowlevel_notify_delete() local
2300 iov[1].iov_base = &outarg; in fuse_lowlevel_notify_delete()
2301 iov[1].iov_len = sizeof(outarg); in fuse_lowlevel_notify_delete()
2302 iov[2].iov_base = (void *)name; in fuse_lowlevel_notify_delete()
2303 iov[2].iov_len = namelen + 1; in fuse_lowlevel_notify_delete()
2305 return send_notify_iov(se, FUSE_NOTIFY_DELETE, iov, 3); in fuse_lowlevel_notify_delete()
2314 struct iovec iov[3]; in fuse_lowlevel_notify_store() local
2332 iov[0].iov_base = &out; in fuse_lowlevel_notify_store()
2333 iov[0].iov_len = sizeof(out); in fuse_lowlevel_notify_store()
2334 iov[1].iov_base = &outarg; in fuse_lowlevel_notify_store()
2335 iov[1].iov_len = sizeof(outarg); in fuse_lowlevel_notify_store()
2337 res = fuse_send_data_iov(se, NULL, iov, 2, bufv, flags); in fuse_lowlevel_notify_store()
2392 struct iovec iov[2]; in fuse_lowlevel_notify_retrieve() local
2419 iov[1].iov_base = &outarg; in fuse_lowlevel_notify_retrieve()
2420 iov[1].iov_len = sizeof(outarg); in fuse_lowlevel_notify_retrieve()
2422 err = send_notify_iov(se, FUSE_NOTIFY_RETRIEVE, iov, 2); in fuse_lowlevel_notify_retrieve()
2599 struct iovec iov = { in fuse_session_process_buf_int() local
2604 fuse_send_msg(se, ch, &iov, 1); in fuse_session_process_buf_int()