/Linux-v6.6/io_uring/ |
D | rw.c | 57 struct iovec __user *uiov; in io_iov_buffer_select_prep() 58 struct iovec iov; in io_iov_buffer_select_prep() 369 static struct iovec *__io_import_iovec(int ddir, struct io_kiocb *req, in __io_import_iovec() 376 struct iovec *iovec; in __io_import_iovec() local 407 iovec = s->fast_iov; in __io_import_iovec() 408 ret = __import_iovec(ddir, buf, sqe_len, UIO_FASTIOV, &iovec, iter, in __io_import_iovec() 412 return iovec; in __io_import_iovec() 416 struct iovec **iovec, struct io_rw_state *s, in io_import_iovec() argument 419 *iovec = __io_import_iovec(rw, req, s, issue_flags); in io_import_iovec() 420 if (IS_ERR(*iovec)) in io_import_iovec() [all …]
|
D | net.h | 11 struct iovec fast_iov[UIO_FASTIOV]; 13 struct iovec fast_iov_one; 21 struct iovec *free_iov;
|
D | rw.h | 8 struct iovec fast_iov[UIO_FASTIOV]; 13 const struct iovec *free_iovec;
|
/Linux-v6.6/mm/ |
D | process_vm_access.c | 151 const struct iovec *rvec, in process_vm_rw_core() 254 const struct iovec __user *lvec, in process_vm_rw() 256 const struct iovec __user *rvec, in process_vm_rw() 260 struct iovec iovstack_l[UIO_FASTIOV]; in process_vm_rw() 261 struct iovec iovstack_r[UIO_FASTIOV]; in process_vm_rw() 262 struct iovec *iov_l = iovstack_l; in process_vm_rw() 263 struct iovec *iov_r; in process_vm_rw() 291 SYSCALL_DEFINE6(process_vm_readv, pid_t, pid, const struct iovec __user *, lvec, in SYSCALL_DEFINE6() 292 unsigned long, liovcnt, const struct iovec __user *, rvec, in SYSCALL_DEFINE6() 299 const struct iovec __user *, lvec, in SYSCALL_DEFINE6() [all …]
|
/Linux-v6.6/include/linux/ |
D | uio.h | 67 struct iovec __ubuf_iovec; 71 const struct iovec *__iov; 86 static inline const struct iovec *iter_iov(const struct iov_iter *iter) in iter_iov() 89 return (const struct iovec *) &iter->__ubuf_iovec; in iter_iov() 156 static inline size_t iov_length(const struct iovec *iov, unsigned long nr_segs) in iov_length() 278 void iov_iter_init(struct iov_iter *i, unsigned int direction, const struct iovec *iov, 366 struct iovec *iovec_from_user(const struct iovec __user *uvector, 368 struct iovec *fast_iov, bool compat); 369 ssize_t import_iovec(int type, const struct iovec __user *uvec, 370 unsigned nr_segs, unsigned fast_segs, struct iovec **iovp, [all …]
|
D | vringh.h | 99 struct iovec *iov; 133 struct iovec *iovec, unsigned num) in vringh_iov_init() argument 138 iov->iov = iovec; in vringh_iov_init()
|
D | compat.h | 622 const struct iovec __user *vec, 625 const struct iovec __user *vec, 629 const struct iovec __user *vec, 635 const struct iovec __user *vec, 789 const struct iovec __user *vec, 792 const struct iovec __user *vec, 796 const struct iovec __user *vec, 802 const struct iovec __user *vec,
|
/Linux-v6.6/tools/testing/selftests/user_events/ |
D | ftrace_test.c | 300 struct iovec io[3]; in TEST_F() 328 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F() 334 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F() 346 ASSERT_NE(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F() 352 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F() 358 struct iovec io[1]; in TEST_F() 384 ASSERT_NE(-1, writev(self->data_fd, (const struct iovec *)io, 1)); in TEST_F() 391 struct iovec io[2]; in TEST_F() 418 ASSERT_NE(-1, writev(self->data_fd, (const struct iovec *)io, 2)); in TEST_F() 422 ASSERT_NE(-1, writev(self->data_fd, (const struct iovec *)io, 2)); in TEST_F() [all …]
|
/Linux-v6.6/drivers/vhost/ |
D | vringh.c | 229 sizeof(struct iovec), gfp); in resize_iovec() 231 new = kmalloc_array(new_num, sizeof(struct iovec), gfp); in resize_iovec() 234 iov->max_num * sizeof(struct iovec)); in resize_iovec() 731 BUILD_BUG_ON(sizeof(struct iovec) != sizeof(struct kvec)); in vringh_getdesc_user() 732 BUILD_BUG_ON(offsetof(struct iovec, iov_base) != in vringh_getdesc_user() 734 BUILD_BUG_ON(offsetof(struct iovec, iov_len) != in vringh_getdesc_user() 736 BUILD_BUG_ON(sizeof(((struct iovec *)NULL)->iov_base) in vringh_getdesc_user() 738 BUILD_BUG_ON(sizeof(((struct iovec *)NULL)->iov_len) in vringh_getdesc_user() 1109 struct iovec *iovec; member 1150 struct iovec *iovec = ivec->iov.iovec; in iotlb_translate() local [all …]
|
D | vhost.h | 126 struct iovec iov[UIO_MAXIOV]; 127 struct iovec iotlb_iov[64]; 128 struct iovec *indirect; 139 struct iovec log_iov[64]; 203 struct iovec iov[], unsigned int iov_size, 227 struct iovec *iov, int count);
|
/Linux-v6.6/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace.h | 108 struct iovec iov; in ptrace_read_regs() 128 struct iovec iov; in ptrace_write_regs() 146 struct iovec iov; in show_tar_registers() 192 struct iovec iov; in write_tar_registers() 235 struct iovec iov; in show_tm_checkpointed_state() 283 struct iovec iov; in write_ckpt_tar_registers() 370 struct iovec iov; in show_ckpt_fpr() 394 struct iovec iov; in write_ckpt_fpr() 539 struct iovec iov; in show_ckpt_gpr() 568 struct iovec iov; in write_ckpt_gpr() [all …]
|
/Linux-v6.6/drivers/infiniband/hw/hfi1/ |
D | pin_system.c | 349 struct user_sdma_iovec *iovec, in add_system_iovec_to_sdma_packet() argument 358 start = (uintptr_t)iovec->iov.iov_base + iovec->offset; in add_system_iovec_to_sdma_packet() 385 iovec->offset += from_this_cache_entry; in add_system_iovec_to_sdma_packet() 403 struct user_sdma_iovec *iovec, in hfi1_add_pages_to_sdma_packet() argument 417 cur_iovec = iovec; in hfi1_add_pages_to_sdma_packet() 418 from_this_iovec = iovec->iov.iov_len - iovec->offset; in hfi1_add_pages_to_sdma_packet() 425 iovec++; in hfi1_add_pages_to_sdma_packet()
|
D | user_sdma.c | 278 struct iovec *iovec, unsigned long dim, in hfi1_user_sdma_process_request() argument 297 if (iovec[idx].iov_len < sizeof(info) + sizeof(req->hdr)) { in hfi1_user_sdma_process_request() 302 iovec[idx].iov_len, sizeof(info) + sizeof(req->hdr)); in hfi1_user_sdma_process_request() 305 ret = copy_from_user(&info, iovec[idx].iov_base, sizeof(info)); in hfi1_user_sdma_process_request() 391 ret = copy_from_user(&req->hdr, iovec[idx].iov_base + sizeof(info), in hfi1_user_sdma_process_request() 462 iovec + idx++, in hfi1_user_sdma_process_request() 483 u16 ntids = iovec[idx].iov_len / sizeof(*req->tids); in hfi1_user_sdma_process_request() 497 tmp = memdup_user(iovec[idx].iov_base, in hfi1_user_sdma_process_request() 682 struct user_sdma_iovec *iovec = NULL; in user_sdma_send_pkts() local 738 iovec = &req->iovs[req->iov_idx]; in user_sdma_send_pkts() [all …]
|
D | user_sdma.h | 108 struct iovec iov; 199 struct iovec *iovec, unsigned long dim,
|
D | pinning.h | 17 struct user_sdma_iovec *iovec,
|
/Linux-v6.6/drivers/xen/xenbus/ |
D | xenbus_xs.c | 304 const struct kvec *iovec, in xs_talkv() argument 318 req->vec = iovec; in xs_talkv() 328 msg.len += iovec[i].iov_len; in xs_talkv() 360 struct kvec iovec; in xs_single() local 362 iovec.iov_base = (void *)string; in xs_single() 363 iovec.iov_len = strlen(string) + 1; in xs_single() 364 return xs_talkv(t, type, &iovec, 1, len); in xs_single() 483 struct kvec iovec[2]; in xenbus_write() local 490 iovec[0].iov_base = (void *)path; in xenbus_write() 491 iovec[0].iov_len = strlen(path) + 1; in xenbus_write() [all …]
|
/Linux-v6.6/lib/ |
D | iov_iter.c | 127 const struct iovec *iov = iter_iov(i); \ 220 const struct iovec *p; in fault_in_iov_iter_readable() 263 const struct iovec *p; in fault_in_iov_iter_writeable() 285 const struct iovec *iov, unsigned long nr_segs, in iov_iter_init() 625 const struct iovec *iov, *end; in iov_iter_iovec_advance() 692 const struct iovec *iov = iter_iov(i); in iov_iter_revert() 815 const struct iovec *iov = iter_iov(i) + k; in iov_iter_aligned_iovec() 902 const struct iovec *iov = iter_iov(i) + k; in iov_iter_alignment_iovec() 974 const struct iovec *iov = iter_iov(i) + k; in iov_iter_gap_alignment() 1068 const struct iovec *iov = iter_iov(i) + k; in first_iovec_segment() [all …]
|
/Linux-v6.6/fs/ |
D | read_write.c | 905 static ssize_t vfs_readv(struct file *file, const struct iovec __user *vec, in vfs_readv() 908 struct iovec iovstack[UIO_FASTIOV]; in vfs_readv() 909 struct iovec *iov = iovstack; in vfs_readv() 922 static ssize_t vfs_writev(struct file *file, const struct iovec __user *vec, in vfs_writev() 925 struct iovec iovstack[UIO_FASTIOV]; in vfs_writev() 926 struct iovec *iov = iovstack; in vfs_writev() 940 static ssize_t do_readv(unsigned long fd, const struct iovec __user *vec, in do_readv() 964 static ssize_t do_writev(unsigned long fd, const struct iovec __user *vec, in do_writev() 994 static ssize_t do_preadv(unsigned long fd, const struct iovec __user *vec, in do_preadv() 1017 static ssize_t do_pwritev(unsigned long fd, const struct iovec __user *vec, in do_pwritev() [all …]
|
/Linux-v6.6/arch/x86/um/os-Linux/ |
D | registers.c | 32 struct iovec iov; in save_fp_registers() 55 struct iovec iov; in restore_fp_registers() 130 struct iovec iov; in arch_init_registers()
|
/Linux-v6.6/fs/fuse/ |
D | ioctl.c | 38 static int fuse_copy_ioctl_iovec_old(struct iovec *dst, void *src, in fuse_copy_ioctl_iovec_old() 63 if (count * sizeof(struct iovec) != transferred) in fuse_copy_ioctl_iovec_old() 71 static int fuse_verify_ioctl_iov(struct fuse_conn *fc, struct iovec *iov, in fuse_verify_ioctl_iov() 85 static int fuse_copy_ioctl_iovec(struct fuse_conn *fc, struct iovec *dst, in fuse_copy_ioctl_iovec() 179 struct iovec *iov_page = NULL; in fuse_do_ioctl() 180 struct iovec *in_iov = NULL, *out_iov = NULL; in fuse_do_ioctl() 205 iov_page = (struct iovec *) __get_free_page(GFP_KERNEL); in fuse_do_ioctl() 216 struct iovec *iov = iov_page; in fuse_do_ioctl()
|
/Linux-v6.6/samples/user_events/ |
D | example.c | 42 struct iovec io[2]; in main() 62 writev(data_fd, (const struct iovec *)io, 2); in main()
|
/Linux-v6.6/tools/testing/selftests/arm64/fp/ |
D | zt-ptrace.c | 59 struct iovec iov; in get_za() 93 struct iovec iov; in set_za() 102 struct iovec iov; in get_zt() 112 struct iovec iov; in set_zt()
|
/Linux-v6.6/arch/arm64/kernel/ |
D | mte.c | 394 struct iovec *kiov, unsigned int gup_flags) in __access_remote_tags() 474 struct iovec *kiov, unsigned int gup_flags) in access_remote_tags() 500 struct iovec kiov; in mte_ptrace_copy_tags() 501 struct iovec __user *uiov = (void __user *)data; in mte_ptrace_copy_tags()
|
/Linux-v6.6/include/uapi/linux/ |
D | uio.h | 17 struct iovec struct
|
/Linux-v6.6/tools/testing/selftests/net/af_unix/ |
D | diag_uid.c | 102 struct iovec iov = { in send_request() 141 struct iovec iov = { in receive_response()
|