Searched refs:iov (Results 1 – 3 of 3) sorted by relevance
/tools/lguest/ |
D | lguest.c | 271 static bool iov_empty(const struct iovec iov[], unsigned int num_iov) in iov_empty() argument 276 if (iov[i].iov_len) in iov_empty() 283 struct iovec iov[], unsigned num_iov, in iov_consume() argument 291 used = iov[i].iov_len < len ? iov[i].iov_len : len; in iov_consume() 293 memcpy(dest, iov[i].iov_base, used); in iov_consume() 296 iov[i].iov_base += used; in iov_consume() 297 iov[i].iov_len -= used; in iov_consume() 741 struct iovec iov[], in wait_for_vq_desc() argument 886 iov[*out_num + *in_num].iov_len = desc[i].len; in wait_for_vq_desc() 887 iov[*out_num + *in_num].iov_base in wait_for_vq_desc() [all …]
|
/tools/virtio/ |
D | vringh_test.c | 522 assert(riov.iov[0].iov_base == __user_addr_max - 1); in main() 523 assert(riov.iov[0].iov_len == 1); in main() 526 assert(wiov.iov[0].iov_base == __user_addr_max - 3); in main() 527 assert(wiov.iov[0].iov_len == 2); in main() 530 assert(wiov.iov[0].iov_base == __user_addr_max - 3); in main() 531 assert(wiov.iov[0].iov_len == 1); in main() 532 assert(wiov.iov[1].iov_base == __user_addr_max - 2); in main() 533 assert(wiov.iov[1].iov_len == 1); in main() 591 assert(riov.iov != host_riov); in main()
|
/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 1252 struct iovec iov; in get_syscall() local 1255 iov.iov_base = ®s; in get_syscall() 1256 iov.iov_len = sizeof(regs); in get_syscall() 1257 EXPECT_EQ(0, ptrace(PTRACE_GETREGSET, tracee, NT_PRSTATUS, &iov)) { in get_syscall() 1269 struct iovec iov; in change_syscall() local 1273 iov.iov_base = ®s; in change_syscall() 1274 iov.iov_len = sizeof(regs); in change_syscall() 1275 ret = ptrace(PTRACE_GETREGSET, tracee, NT_PRSTATUS, &iov); in change_syscall() 1298 iov.iov_base = &syscall; in change_syscall() 1299 iov.iov_len = sizeof(syscall); in change_syscall() [all …]
|