Home
last modified time | relevance | path

Searched refs:iov (Results 1 – 25 of 221) sorted by relevance

123456789

/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/
Dptrace.h108 struct iovec iov; in ptrace_read_regs() local
113 iov.iov_base = regs; in ptrace_read_regs()
114 iov.iov_len = n * sizeof(unsigned long); in ptrace_read_regs()
116 ret = ptrace(PTRACE_GETREGSET, child, type, &iov); in ptrace_read_regs()
128 struct iovec iov; in ptrace_write_regs() local
133 iov.iov_base = regs; in ptrace_write_regs()
134 iov.iov_len = n * sizeof(unsigned long); in ptrace_write_regs()
136 ret = ptrace(PTRACE_SETREGSET, child, type, &iov); in ptrace_write_regs()
146 struct iovec iov; in show_tar_registers() local
155 iov.iov_base = (u64 *) reg; in show_tar_registers()
[all …]
/external/strace/tests/
Dpwritev.c42 print_iov(const struct iovec *iov) in print_iov() argument
45 unsigned char *buf = iov->iov_base; in print_iov()
48 for (i = 0; i < iov->iov_len; ++i) { in print_iov()
53 i > LIM ? "..." : "", (unsigned) iov->iov_len); in print_iov()
57 print_iovec(const struct iovec *iov, unsigned int cnt, unsigned int size) in print_iovec() argument
60 printf("%p", iov); in print_iovec()
69 printf("... /* %p */", &iov[i]); in print_iovec()
76 print_iov(&iov[i]); in print_iovec()
93 struct iovec *iov = tail_alloc(sizeof(*iov) * LEN); in main() local
96 iov[i].iov_base = &buf[i]; in main()
[all …]
Dpreadv.c41 print_iov(const struct iovec *iov) in print_iov() argument
44 unsigned char *buf = iov->iov_base; in print_iov()
47 for (i = 0; i < iov->iov_len; ++i) in print_iov()
49 printf("\", iov_len=%u}", (unsigned) iov->iov_len); in print_iov()
53 print_iovec(const struct iovec *iov, unsigned int cnt) in print_iovec() argument
60 print_iov(&iov[i]); in print_iovec()
70 TAIL_ALLOC_OBJECT_CONST_PTR(struct iovec, iov); in main()
71 iov->iov_base = buf; in main()
72 iov->iov_len = LEN; in main()
78 if (preadv(0, iov, 1, offset) != LEN) in main()
[all …]
Dioctl_sg_io_v3.c153 const struct iovec iov[] = { in main() local
162 struct iovec *const t_iov = tail_memdup(iov, sizeof(iov)); in main()
168 sg_io->iovec_count = ARRAY_SIZE(iov); in main()
169 sg_io->dxfer_len = iov[0].iov_len + iov[1].iov_len - 1; in main()
201 *(unsigned char *) (iov[0].iov_base + 0), in main()
202 *(unsigned char *) (iov[0].iov_base + 1), in main()
203 (unsigned int) iov[0].iov_len, in main()
204 *(unsigned char *) (iov[1].iov_base + 0), in main()
205 *(unsigned char *) (iov[1].iov_base + 1), in main()
206 *(unsigned char *) (iov[1].iov_base + 2), in main()
[all …]
Dioctl_sg_io_v4.c131 const struct iovec iov[] = { in main() local
140 const struct iovec *const t_iov = tail_memdup(iov, sizeof(iov)); in main()
141 sg_io->dout_iovec_count = ARRAY_SIZE(iov); in main()
142 sg_io->dout_xfer_len = iov[0].iov_len + iov[1].iov_len - 1; in main()
204 *(unsigned char *) (iov[0].iov_base + 0), in main()
205 *(unsigned char *) (iov[0].iov_base + 1), in main()
206 (unsigned int) iov[0].iov_len, in main()
207 *(unsigned char *) (iov[1].iov_base + 0), in main()
208 *(unsigned char *) (iov[1].iov_base + 1), in main()
209 *(unsigned char *) (iov[1].iov_base + 2), in main()
[all …]
/external/strace/tests-m32/
Dpwritev.c42 print_iov(const struct iovec *iov) in print_iov() argument
45 unsigned char *buf = iov->iov_base; in print_iov()
48 for (i = 0; i < iov->iov_len; ++i) { in print_iov()
53 i > LIM ? "..." : "", (unsigned) iov->iov_len); in print_iov()
57 print_iovec(const struct iovec *iov, unsigned int cnt, unsigned int size) in print_iovec() argument
60 printf("%p", iov); in print_iovec()
69 printf("... /* %p */", &iov[i]); in print_iovec()
76 print_iov(&iov[i]); in print_iovec()
93 struct iovec *iov = tail_alloc(sizeof(*iov) * LEN); in main() local
96 iov[i].iov_base = &buf[i]; in main()
[all …]
Dpreadv.c41 print_iov(const struct iovec *iov) in print_iov() argument
44 unsigned char *buf = iov->iov_base; in print_iov()
47 for (i = 0; i < iov->iov_len; ++i) in print_iov()
49 printf("\", iov_len=%u}", (unsigned) iov->iov_len); in print_iov()
53 print_iovec(const struct iovec *iov, unsigned int cnt) in print_iovec() argument
60 print_iov(&iov[i]); in print_iovec()
70 TAIL_ALLOC_OBJECT_CONST_PTR(struct iovec, iov); in main()
71 iov->iov_base = buf; in main()
72 iov->iov_len = LEN; in main()
78 if (preadv(0, iov, 1, offset) != LEN) in main()
[all …]
Dioctl_sg_io_v3.c153 const struct iovec iov[] = { in main() local
162 struct iovec *const t_iov = tail_memdup(iov, sizeof(iov)); in main()
168 sg_io->iovec_count = ARRAY_SIZE(iov); in main()
169 sg_io->dxfer_len = iov[0].iov_len + iov[1].iov_len - 1; in main()
201 *(unsigned char *) (iov[0].iov_base + 0), in main()
202 *(unsigned char *) (iov[0].iov_base + 1), in main()
203 (unsigned int) iov[0].iov_len, in main()
204 *(unsigned char *) (iov[1].iov_base + 0), in main()
205 *(unsigned char *) (iov[1].iov_base + 1), in main()
206 *(unsigned char *) (iov[1].iov_base + 2), in main()
[all …]
Dioctl_sg_io_v4.c131 const struct iovec iov[] = { in main() local
140 const struct iovec *const t_iov = tail_memdup(iov, sizeof(iov)); in main()
141 sg_io->dout_iovec_count = ARRAY_SIZE(iov); in main()
142 sg_io->dout_xfer_len = iov[0].iov_len + iov[1].iov_len - 1; in main()
204 *(unsigned char *) (iov[0].iov_base + 0), in main()
205 *(unsigned char *) (iov[0].iov_base + 1), in main()
206 (unsigned int) iov[0].iov_len, in main()
207 *(unsigned char *) (iov[1].iov_base + 0), in main()
208 *(unsigned char *) (iov[1].iov_base + 1), in main()
209 *(unsigned char *) (iov[1].iov_base + 2), in main()
[all …]
/external/strace/tests-mx32/
Dpwritev.c42 print_iov(const struct iovec *iov) in print_iov() argument
45 unsigned char *buf = iov->iov_base; in print_iov()
48 for (i = 0; i < iov->iov_len; ++i) { in print_iov()
53 i > LIM ? "..." : "", (unsigned) iov->iov_len); in print_iov()
57 print_iovec(const struct iovec *iov, unsigned int cnt, unsigned int size) in print_iovec() argument
60 printf("%p", iov); in print_iovec()
69 printf("... /* %p */", &iov[i]); in print_iovec()
76 print_iov(&iov[i]); in print_iovec()
93 struct iovec *iov = tail_alloc(sizeof(*iov) * LEN); in main() local
96 iov[i].iov_base = &buf[i]; in main()
[all …]
Dpreadv.c41 print_iov(const struct iovec *iov) in print_iov() argument
44 unsigned char *buf = iov->iov_base; in print_iov()
47 for (i = 0; i < iov->iov_len; ++i) in print_iov()
49 printf("\", iov_len=%u}", (unsigned) iov->iov_len); in print_iov()
53 print_iovec(const struct iovec *iov, unsigned int cnt) in print_iovec() argument
60 print_iov(&iov[i]); in print_iovec()
70 TAIL_ALLOC_OBJECT_CONST_PTR(struct iovec, iov); in main()
71 iov->iov_base = buf; in main()
72 iov->iov_len = LEN; in main()
78 if (preadv(0, iov, 1, offset) != LEN) in main()
[all …]
Dioctl_sg_io_v3.c153 const struct iovec iov[] = { in main() local
162 struct iovec *const t_iov = tail_memdup(iov, sizeof(iov)); in main()
168 sg_io->iovec_count = ARRAY_SIZE(iov); in main()
169 sg_io->dxfer_len = iov[0].iov_len + iov[1].iov_len - 1; in main()
201 *(unsigned char *) (iov[0].iov_base + 0), in main()
202 *(unsigned char *) (iov[0].iov_base + 1), in main()
203 (unsigned int) iov[0].iov_len, in main()
204 *(unsigned char *) (iov[1].iov_base + 0), in main()
205 *(unsigned char *) (iov[1].iov_base + 1), in main()
206 *(unsigned char *) (iov[1].iov_base + 2), in main()
[all …]
Dioctl_sg_io_v4.c131 const struct iovec iov[] = { in main() local
140 const struct iovec *const t_iov = tail_memdup(iov, sizeof(iov)); in main()
141 sg_io->dout_iovec_count = ARRAY_SIZE(iov); in main()
142 sg_io->dout_xfer_len = iov[0].iov_len + iov[1].iov_len - 1; in main()
204 *(unsigned char *) (iov[0].iov_base + 0), in main()
205 *(unsigned char *) (iov[0].iov_base + 1), in main()
206 (unsigned int) iov[0].iov_len, in main()
207 *(unsigned char *) (iov[1].iov_base + 0), in main()
208 *(unsigned char *) (iov[1].iov_base + 1), in main()
209 *(unsigned char *) (iov[1].iov_base + 2), in main()
[all …]
/external/virglrenderer/src/
Diov.c44 size_t vrend_get_iovec_size(const struct iovec *iov, int iovlen) { in vrend_get_iovec_size() argument
48 size += iov->iov_len; in vrend_get_iovec_size()
49 iov++; in vrend_get_iovec_size()
56 size_t vrend_read_from_iovec(const struct iovec *iov, int iovlen, in vrend_read_from_iovec() argument
64 if (iov->iov_len > offset) { in vrend_read_from_iovec()
65 len = iov->iov_len - offset; in vrend_read_from_iovec()
69 memcpy(buf, (char*)iov->iov_base + offset, len); in vrend_read_from_iovec()
76 offset -= iov->iov_len; in vrend_read_from_iovec()
79 iov++; in vrend_read_from_iovec()
86 size_t vrend_write_to_iovec(const struct iovec *iov, int iovlen, in vrend_write_to_iovec() argument
[all …]
/external/ltp/testcases/kernel/syscalls/sendmsg/
Dsendmsg01.c64 static struct iovec iov[1]; variable
89 struct iovec *iov; member
108 .iov = iov,
125 .iov = iov,
142 .iov = iov,
159 .iov = iov,
176 .iov = iov,
193 .iov = iov,
209 .iov = iov,
225 .iov = iov,
[all …]
/external/openssh/
Datomicio.c107 struct iovec iov_array[IOV_MAX], *iov = iov_array; in atomiciov6() local
115 memcpy(iov, _iov, (size_t)iovcnt * sizeof(*_iov)); in atomiciov6()
121 for (; iovcnt > 0 && iov[0].iov_len > 0;) { in atomiciov6()
122 res = (f) (fd, iov, iovcnt); in atomiciov6()
141 while (iovcnt > 0 && rem >= iov[0].iov_len) { in atomiciov6()
142 rem -= iov[0].iov_len; in atomiciov6()
143 iov++; in atomiciov6()
147 if (rem > 0 && (iovcnt <= 0 || rem > iov[0].iov_len)) { in atomiciov6()
154 iov[0].iov_base = ((char *)iov[0].iov_base) + rem; in atomiciov6()
155 iov[0].iov_len -= rem; in atomiciov6()
/external/compiler-rt/test/asan/TestCases/Posix/
Dreadv.cc16 struct iovec iov[2]; in main() local
19 iov[0].iov_base = buf_ - 1; in main()
21 iov[0].iov_base = buf + 1; in main()
23 iov[0].iov_len = 5; in main()
24 iov[1].iov_base = buf + 10; in main()
25 iov[1].iov_len = 2000; in main()
28 readv(fd, iov, 2); in main()
/external/selinux/libselinux/src/
Dsetrans_client.c84 struct iovec iov[5]; in send_request() local
101 iov[0].iov_base = &function; in send_request()
102 iov[0].iov_len = sizeof(function); in send_request()
103 iov[1].iov_base = &data1_size; in send_request()
104 iov[1].iov_len = sizeof(data1_size); in send_request()
105 iov[2].iov_base = &data2_size; in send_request()
106 iov[2].iov_len = sizeof(data2_size); in send_request()
107 iov[3].iov_base = (char *)data1; in send_request()
108 iov[3].iov_len = data1_size; in send_request()
109 iov[4].iov_base = (char *)data2; in send_request()
[all …]
/external/ltp/testcases/kernel/syscalls/recvmsg/
Drecvmsg01.c72 struct iovec iov[1]; variable
95 struct iovec *iov; member
111 PF_INET, SOCK_STREAM, 0, iov, 1, buf, sizeof(buf), &msgdat, 0,
117 0, 0, 0, iov, 1, (void *)buf, sizeof(buf), &msgdat, 0,
123 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf),
129 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf),
134 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)-1, sizeof(buf),
146 PF_INET, SOCK_STREAM, 0, iov, -1, (void *)buf, sizeof(buf),
152 PF_UNIX, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf),
158 PF_INET, SOCK_STREAM, 0, iov, 1, (void *)buf, sizeof(buf),
[all …]
/external/ltp/utils/sctp/lib/
Dsendmsg.c37 struct iovec iov; in sctp_sendmsg() local
44 outmsg.msg_iov = &iov; in sctp_sendmsg()
45 iov.iov_base = (void *)msg; in sctp_sendmsg()
46 iov.iov_len = len; in sctp_sendmsg()
78 struct iovec iov; in sctp_send() local
83 outmsg.msg_iov = &iov; in sctp_send()
84 iov.iov_base = (void *)msg; in sctp_send()
85 iov.iov_len = len; in sctp_send()
/external/ltp/testcases/kernel/connectors/pec/
Dpec_listener.c90 struct iovec iov; in netlink_send() local
102 memset(&iov, 0, sizeof(struct iovec)); in netlink_send()
103 iov.iov_base = (void *)nlhdr; in netlink_send()
104 iov.iov_len = nlhdr->nlmsg_len; in netlink_send()
109 msg.msg_iov = &iov; in netlink_send()
126 struct iovec iov; in netlink_recv() local
130 memset(&iov, 0, sizeof(iov)); in netlink_recv()
133 iov.iov_base = (void *)nlhdr; in netlink_recv()
134 iov.iov_len = NLMSG_SPACE(MAX_MSG_SIZE); in netlink_recv()
138 msg.msg_iov = &iov; in netlink_recv()
/external/perfetto/src/base/
Dunix_socket_unittest.cc560 struct iovec iov[2] = {}; in TEST_F() local
563 iov[0].iov_base = &hello[0]; in TEST_F()
564 iov[0].iov_len = base::ArraySize(hello); in TEST_F()
566 iov[1].iov_base = &world[0]; in TEST_F()
567 iov[1].iov_len = base::ArraySize(world); in TEST_F()
570 hdr.msg_iov = iov; in TEST_F()
571 hdr.msg_iovlen = base::ArraySize(iov); in TEST_F()
579 EXPECT_EQ(iov[0].iov_len, base::ArraySize(hello) - 1); in TEST_F()
582 EXPECT_EQ(hdr.msg_iov, &iov[1]); in TEST_F()
594 struct iovec iov[2] = {}; in TEST_F() local
[all …]
/external/linux-kselftest/tools/testing/selftests/net/
Dudpgso_bench_tx.c173 struct iovec iov[max_nr_msg]; in send_udp_sendmmsg() local
184 iov[i].iov_base = data + off; in send_udp_sendmmsg()
185 iov[i].iov_len = cfg_mss < left ? cfg_mss : left; in send_udp_sendmmsg()
187 mmsgs[i].msg_hdr.msg_iov = iov + i; in send_udp_sendmmsg()
190 off += iov[i].iov_len; in send_udp_sendmmsg()
191 left -= iov[i].iov_len; in send_udp_sendmmsg()
217 struct iovec iov = {0}; in send_udp_segment() local
220 iov.iov_base = data; in send_udp_segment()
221 iov.iov_len = cfg_payload_len; in send_udp_segment()
223 msg.msg_iov = &iov; in send_udp_segment()
[all …]
/external/strace/
Dio.c69 const kernel_ulong_t *iov; in print_iovec() local
76 iov = iov_buf; in print_iovec()
78 iov = elem_buf; in print_iovec()
83 len = iov[1]; in print_iovec()
91 printstrn(tcp, iov[0], len); in print_iovec()
99 decode_netlink(tcp, tcp->u_arg[0], iov[0], len); in print_iovec()
102 printaddr(iov[0]); in print_iovec()
106 tprintf(", iov_len=%" PRI_klu "}", iov[1]); in print_iovec()
120 kernel_ulong_t iov[2]; in tprint_iov_upto() local
125 print_array(tcp, addr, len, iov, current_wordsize * 2, in tprint_iov_upto()
/external/libnl/lib/netfilter/
Dqueue_msg.c267 struct iovec iov[3]; in nfnl_queue_msg_send_verdict_payload() local
274 memset(iov, 0, sizeof(iov)); in nfnl_queue_msg_send_verdict_payload()
276 iov[0].iov_base = (void *) nlmsg_hdr(nlmsg); in nfnl_queue_msg_send_verdict_payload()
277 iov[0].iov_len = nlmsg_hdr(nlmsg)->nlmsg_len; in nfnl_queue_msg_send_verdict_payload()
283 iov[1].iov_base = (void *) &nla; in nfnl_queue_msg_send_verdict_payload()
284 iov[1].iov_len = sizeof(nla); in nfnl_queue_msg_send_verdict_payload()
286 iov[2].iov_base = (void *) payload_data; in nfnl_queue_msg_send_verdict_payload()
287 iov[2].iov_len = NLA_ALIGN(payload_len); in nfnl_queue_msg_send_verdict_payload()
290 err = nl_send_iovec(nlh, nlmsg, iov, 3); in nfnl_queue_msg_send_verdict_payload()

123456789