Home
last modified time | relevance | path

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

1234567891011

/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/
Dptrace.h104 struct iovec iov; in ptrace_read_regs() local
109 iov.iov_base = regs; in ptrace_read_regs()
110 iov.iov_len = n * sizeof(unsigned long); in ptrace_read_regs()
112 ret = ptrace(PTRACE_GETREGSET, child, type, &iov); in ptrace_read_regs()
124 struct iovec iov; in ptrace_write_regs() local
129 iov.iov_base = regs; in ptrace_write_regs()
130 iov.iov_len = n * sizeof(unsigned long); in ptrace_write_regs()
132 ret = ptrace(PTRACE_SETREGSET, child, type, &iov); in ptrace_write_regs()
142 struct iovec iov; in show_tar_registers() local
151 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.c46 size_t vrend_get_iovec_size(const struct iovec *iov, int iovlen) { in vrend_get_iovec_size() argument
50 size += iov->iov_len; in vrend_get_iovec_size()
51 iov++; in vrend_get_iovec_size()
58 size_t vrend_read_from_iovec(const struct iovec *iov, int iovlen, in vrend_read_from_iovec() argument
66 if (iov->iov_len > offset) { in vrend_read_from_iovec()
67 len = iov->iov_len - offset; in vrend_read_from_iovec()
71 memcpy(buf, (char*)iov->iov_base + offset, len); in vrend_read_from_iovec()
78 offset -= iov->iov_len; in vrend_read_from_iovec()
81 iov++; in vrend_read_from_iovec()
88 size_t vrend_write_to_iovec(const struct iovec *iov, int iovlen, in vrend_write_to_iovec() argument
[all …]
Dvirgl_resource.c108 const struct iovec *iov, in virgl_resource_create_from_pipe() argument
120 res->iov = iov; in virgl_resource_create_from_pipe()
130 const struct iovec *iov, in virgl_resource_create_from_fd() argument
145 res->iov = iov; in virgl_resource_create_from_fd()
153 const struct iovec *iov, in virgl_resource_create_from_iov() argument
159 assert(iov); in virgl_resource_create_from_iov()
165 res->iov = iov; in virgl_resource_create_from_iov()
185 const struct iovec *iov, in virgl_resource_attach_iov() argument
188 if (res->iov) in virgl_resource_attach_iov()
191 res->iov = iov; in virgl_resource_attach_iov()
[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/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/llvm-project/compiler-rt/test/asan/TestCases/Posix/
Dreadv.cpp16 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/openssh/
Datomicio.c112 struct iovec iov_array[IOV_MAX], *iov = iov_array; in atomiciov6() local
120 memcpy(iov, _iov, (size_t)iovcnt * sizeof(*_iov)); in atomiciov6()
128 for (; iovcnt > 0 && iov[0].iov_len > 0;) { in atomiciov6()
129 res = (f) (fd, iov, iovcnt); in atomiciov6()
151 while (iovcnt > 0 && rem >= iov[0].iov_len) { in atomiciov6()
152 rem -= iov[0].iov_len; in atomiciov6()
153 iov++; in atomiciov6()
157 if (rem > 0 && (iovcnt <= 0 || rem > iov[0].iov_len)) { in atomiciov6()
164 iov[0].iov_base = ((char *)iov[0].iov_base) + rem; in atomiciov6()
165 iov[0].iov_len -= rem; in atomiciov6()
/external/crosvm/data_model/src/
Dsys.rs19 iov: iovec, field
38 iov: iovec { in from_raw_parts()
48 self.iov.iov_len as usize in len()
53 self.iov.iov_len == 0 in is_empty()
59 self.iov.iov_base as *const u8 in as_ptr()
65 self.iov.iov_base as *mut u8 in as_mut_ptr()
79 &self.iov in as_ref()
85 &mut self.iov in as_mut()
109 .field("iov", &DebugIovec(self.iov)) in fmt()
/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/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/rust/crates/nix/src/sys/
Duio.rs10 pub fn writev(fd: RawFd, iov: &[IoVec<&[u8]>]) -> Result<usize> { in writev()
11 let res = unsafe { libc::writev(fd, iov.as_ptr() as *const libc::iovec, iov.len() as c_int) }; in writev()
16 pub fn readv(fd: RawFd, iov: &mut [IoVec<&mut [u8]>]) -> Result<usize> { in readv()
17 let res = unsafe { libc::readv(fd, iov.as_ptr() as *const libc::iovec, iov.len() as c_int) }; in readv()
33 pub fn pwritev(fd: RawFd, iov: &[IoVec<&[u8]>], in pwritev()
36 libc::pwritev(fd, iov.as_ptr() as *const libc::iovec, iov.len() as c_int, offset) in pwritev()
54 pub fn preadv(fd: RawFd, iov: &[IoVec<&mut [u8]>], in preadv()
57 libc::preadv(fd, iov.as_ptr() as *const libc::iovec, iov.len() as c_int, offset) in preadv()
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/
Dares_writev.c28 ares_ssize_t ares_writev(ares_socket_t s, const struct iovec *iov, int iovcnt) in ares_writev() argument
45 if (iov[i].iov_len > INT_MAX - bytes) in ares_writev()
50 bytes += iov[i].iov_len; in ares_writev()
67 memcpy (bp, iov[i].iov_base, iov[i].iov_len); in ares_writev()
68 bp += iov[i].iov_len; in ares_writev()
/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 …]

1234567891011