Home
last modified time | relevance | path

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

12

/system/memory/libmemunreachable/
DLeakPipe.cpp28 struct iovec iov {}; in SendFd() struct
32 hdr.msg_iov = &iov; in SendFd()
34 iov.iov_base = &data; in SendFd()
35 iov.iov_len = sizeof(data); in SendFd()
62 struct iovec iov {}; in ReceiveFd() struct
66 hdr.msg_iov = &iov; in ReceiveFd()
68 iov.iov_base = &data; in ReceiveFd()
69 iov.iov_len = sizeof(data); in ReceiveFd()
/system/core/libcutils/
Dklog.cpp47 void klog_writev(int level, const struct iovec* iov, int iov_count) { in klog_writev() argument
52 TEMP_FAILURE_RETRY(writev(klog_fd, iov, iov_count)); in klog_writev()
66 struct iovec iov[1]; in klog_write() local
67 iov[0].iov_base = buf; in klog_write()
68 iov[0].iov_len = strlen(buf); in klog_write()
69 klog_writev(level, iov, 1); in klog_write()
/system/bt/vendor_libs/linux/interface/
Dh4_protocol.cc36 struct iovec iov[2]; in Send() local
38 iov[0].iov_base = &type; in Send()
39 iov[0].iov_len = sizeof(type); in Send()
40 iov[1].iov_base = (void *)data; in Send()
41 iov[1].iov_len = length; in Send()
43 ret = TEMP_FAILURE_RETRY(writev(uart_fd_, iov, 2)); in Send()
/system/netd/server/
DNetlinkCommands.cpp85 OPTNONE int sendNetlinkRequest(uint16_t action, uint16_t flags, iovec* iov, int iovlen, in sendNetlinkRequest() argument
91 iov[0].iov_base = &nlmsg; in sendNetlinkRequest()
92 iov[0].iov_len = sizeof(nlmsg); in sendNetlinkRequest()
94 nlmsg.nlmsg_len += iov[i].iov_len; in sendNetlinkRequest()
104 if (writev(sock, iov, iovlen) == -1) { in sendNetlinkRequest()
122 int sendNetlinkRequest(uint16_t action, uint16_t flags, iovec* iov, int iovlen) { in sendNetlinkRequest() argument
123 return sendNetlinkRequest(action, flags, iov, iovlen, nullptr); in sendNetlinkRequest()
196 iovec iov[] = { in rtNetlinkFlush() local
202 if ((ret = sendNetlinkRequest(getAction, flags, iov, ARRAY_SIZE(iov), &callback)) != 0) { in rtNetlinkFlush()
DSockDiag.cpp99 iovec *iov, int iovcnt) { in sendDumpRequest() argument
117 iov[0].iov_base = &request; in sendDumpRequest()
118 iov[0].iov_len = sizeof(request); in sendDumpRequest()
120 len += iov[i].iov_len; in sendDumpRequest()
124 if (writev(mSock, iov, iovcnt) != (ssize_t) len) { in sendDumpRequest()
132 iovec iov[] = { in sendDumpRequest() local
135 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest()
197 iovec iov[] = { in sendDumpRequest() local
204 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest()
335 iovec *iov, int iovcnt) { in destroyLiveSockets() argument
[all …]
DXfrmController.cpp179 void logIov(const std::vector<iovec>& iov) { in logIov() argument
180 for (const iovec& row : iov) { in logIov()
291 for (const iovec& iov : *iovecs) { in sendMessage()
292 nlMsg.nlmsg_len += iov.iov_len; in sendMessage()
430 std::vector<iovec> iov = {{nullptr, 0}, // reserved for the eventual addition of a NLMSG_HDR in flushSaDb() local
434 return s.sendMessage(XFRM_MSG_FLUSHSA, NETLINK_REQUEST_FLAGS, 0, &iov); in flushSaDb()
438 std::vector<iovec> iov = {{nullptr, 0}}; // reserved for the eventual addition of a NLMSG_HDR in flushPolicyDb() local
439 return s.sendMessage(XFRM_MSG_FLUSHPOLICY, NETLINK_REQUEST_FLAGS, 0, &iov); in flushPolicyDb()
908 std::vector<iovec> iov = { in updateSecurityAssociation() local
949 len = iov[USERSA].iov_len = fillUserSaInfo(record, &usersa); in updateSecurityAssociation()
[all …]
DRouteControllerTest.cpp59 iovec iov[] = { in TEST_F() local
65 iov, ARRAY_SIZE(iov), &callback)); in TEST_F()
DSockDiag.h93 iovec *iov, int iovcnt);
95 int destroyLiveSockets(const DestroyFilter& destroy, const char *what, iovec *iov, int iovcnt);
/system/core/adb/sysdeps/
Duio.h31 ssize_t adb_writev(borrowed_fd fd, const adb_iovec* iov, int iovcnt);
37 inline ssize_t adb_writev(borrowed_fd fd, const adb_iovec* iov, int iovcnt) { in adb_writev() argument
38 return writev(fd.get(), iov, iovcnt); in adb_writev()
/system/core/libunwindstack/
DMemoryMte.cpp33 iovec iov = {&tag, 1}; in ReadTag() local
34 if (ptrace(PTRACE_PEEKMTETAGS, pid_, reinterpret_cast<void*>(addr), &iov) != 0 || in ReadTag()
35 iov.iov_len != 1) { in ReadTag()
/system/core/libsysutils/src/
DSocketClient.cpp185 int SocketClient::sendDatav(struct iovec *iov, int iovcnt) { in sendDatav() argument
187 int rc = sendDataLockedv(iov, iovcnt); in sendDatav()
193 int SocketClient::sendDataLockedv(struct iovec *iov, int iovcnt) { in sendDataLockedv() argument
215 writev(mSocket, iov + current, iovcnt - current)); in sendDataLockedv()
219 while ((current < iovcnt) && (written >= iov[current].iov_len)) { in sendDataLockedv()
220 written -= iov[current].iov_len; in sendDataLockedv()
226 iov[current].iov_base = (char *)iov[current].iov_base + written; in sendDataLockedv()
227 iov[current].iov_len -= written; in sendDataLockedv()
/system/core/libnetutils/
Dpacket.c91 struct iovec iov[3]; in send_packet() local
130 iov[0].iov_base = (char *)&ip; in send_packet()
131 iov[0].iov_len = sizeof(ip); in send_packet()
132 iov[1].iov_base = (char *)&udp; in send_packet()
133 iov[1].iov_len = sizeof(udp); in send_packet()
134 iov[2].iov_base = (char *)msg; in send_packet()
135 iov[2].iov_len = size; in send_packet()
145 msghdr.msg_iov = iov; in send_packet()
146 msghdr.msg_iovlen = sizeof(iov) / sizeof(struct iovec); in send_packet()
/system/core/trusty/confirmationui/
DTrustyApp.cpp65 iovec iov[] = { in TrustyRpc() local
75 int rc = writev(handle, iov, 2); in TrustyRpc()
103 iovec iov[] = { in TrustyRpc() local
114 ssize_t rc = writev(handle, iov, 1); in TrustyRpc()
120 rc = readv(handle, iov, 2); in TrustyRpc()
/system/core/logd/
DLogAudit.cpp220 struct iovec iov[4]; in logPrint() local
226 iov[0].iov_base = info ? const_cast<char*>(log_info) : const_cast<char*>(log_warning); in logPrint()
227 iov[0].iov_len = info ? sizeof(log_info) : sizeof(log_warning); in logPrint()
228 iov[1].iov_base = str; in logPrint()
229 iov[1].iov_len = strlen(str); in logPrint()
230 iov[2].iov_base = const_cast<char*>(denial_metadata.c_str()); in logPrint()
231 iov[2].iov_len = denial_metadata.length(); in logPrint()
232 iov[3].iov_base = const_cast<char*>(newline); in logPrint()
233 iov[3].iov_len = strlen(newline); in logPrint()
235 writev(fdDmesg, iov, arraysize(iov)); in logPrint()
DLogListener.cpp58 struct iovec iov = {buffer, sizeof(buffer) - 1}; in HandleData() local
62 nullptr, 0, &iov, 1, control, sizeof(control), 0, in HandleData()
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dh4_protocol.cc38 struct iovec iov[] = {{&type, sizeof(type)}, {const_cast<uint8_t*>(data), length}}; in Send() local
41 ret = TEMP_FAILURE_RETRY(writev(uart_fd_, iov, sizeof(iov) / sizeof(iov[0]))); in Send()
Dh4_packetizer.cc60 struct iovec iov[] = {{&type, sizeof(type)}, {const_cast<uint8_t*>(data), length}}; in Send() local
63 ret = TEMP_FAILURE_RETRY(writev(uart_fd_, iov, sizeof(iov) / sizeof(iov[0]))); in Send()
/system/netd/client/
DFwmarkClient.cpp88 iovec iov[2] = { in send() local
94 message.msg_iov = iov; in send()
95 message.msg_iovlen = std::size(iov); in send()
/system/core/trusty/keymaster/ipc/
Dtrusty_keymaster_ipc.cpp75 struct iovec iov[2]; in trusty_keymaster_call() local
77 iov[0] = {.iov_base = &header, .iov_len = sizeof(struct keymaster_message)}; in trusty_keymaster_call()
79 iov[1] = {.iov_base = out + *out_size, in trusty_keymaster_call()
82 rc = readv(handle_, iov, 2); in trusty_keymaster_call()
/system/core/debuggerd/libdebuggerd/
Dutility.cpp114 struct iovec iov[3]; in _VLOG() local
115 iov[0].iov_base = const_cast<char*>(prefix); in _VLOG()
116 iov[0].iov_len = strlen(prefix); in _VLOG()
117 iov[1].iov_base = const_cast<char*>(fragment.c_str()); in _VLOG()
118 iov[1].iov_len = fragment.length(); in _VLOG()
119 iov[2].iov_base = const_cast<char*>("\n"); in _VLOG()
120 iov[2].iov_len = 1; in _VLOG()
121 TEMP_FAILURE_RETRY(writev(kmsg_fd.get(), iov, 3)); in _VLOG()
/system/libbase/
Dcmsg.cpp43 iovec iov = {.iov_base = const_cast<void*>(data), .iov_len = len}; in SendFileDescriptorVector() local
47 .msg_iov = &iov, in SendFileDescriptorVector()
86 iovec iov = {.iov_base = const_cast<void*>(data), .iov_len = len}; in ReceiveFileDescriptorVector() local
90 .msg_iov = &iov, in ReceiveFileDescriptorVector()
/system/core/libsysutils/include/sysutils/
DSocketClient.h62 int sendDatav(struct iovec *iov, int iovcnt);
82 int sendDataLockedv(struct iovec *iov, int iovcnt);
/system/memory/libmeminfo/libdmabufinfo/
Ddmabufinfo_test.cpp96 iovec iov{}; in run() local
97 iov.iov_base = &unused; in run()
98 iov.iov_len = sizeof(unused); in run()
101 msg.msg_iov = &iov; in run()
124 iovec iov{}; in sendfd() local
125 iov.iov_base = &unused; in sendfd()
126 iov.iov_len = sizeof(unused); in sendfd()
129 msg.msg_iov = &iov; in sendfd()
/system/core/adb/
Dtypes.cpp197 adb_iovec iov; in iovecs() local
198 iov.iov_base = const_cast<char*>(data); in iovecs()
199 iov.iov_len = len; in iovecs()
200 result.emplace_back(iov); in iovecs()
/system/bt/osi/src/
Dsocket.cc158 struct iovec iov; in socket_write_and_transfer_fd() local
161 iov.iov_base = (void*)buf; in socket_write_and_transfer_fd()
162 iov.iov_len = count; in socket_write_and_transfer_fd()
164 msg.msg_iov = &iov; in socket_write_and_transfer_fd()

12