Home
last modified time | relevance | path

Searched refs:iov_len (Results 1 – 25 of 43) sorted by relevance

12

/system/core/liblog/
Dlogger_write.cpp246 len += vec[i].iov_len; in __write_to_log_daemon()
257 if (vec[0].iov_len < 4) { in __write_to_log_daemon()
277 if (vec[0].iov_len < 4) { in __write_to_log_daemon()
320 size_t len = vec[0].iov_len; in __write_to_log_daemon()
330 len = vec[1].iov_len; in __write_to_log_daemon()
468 vec[0].iov_len = 1; in __android_log_buf_write()
470 vec[1].iov_len = strlen(tag) + 1; in __android_log_buf_write()
472 vec[2].iov_len = strlen(msg) + 1; in __android_log_buf_write()
540 vec[0].iov_len = sizeof(tag); in __android_log_bwrite()
542 vec[1].iov_len = len; in __android_log_bwrite()
[all …]
Dpmsg_writer.cpp107 if (vec[0].iov_len < 4) { in pmsgWrite()
151 newVec[0].iov_len = sizeof(pmsgHeader); in pmsgWrite()
153 newVec[1].iov_len = sizeof(header); in pmsgWrite()
157 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in pmsgWrite()
160 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in pmsgWrite()
161 if (newVec[i].iov_len) { in pmsgWrite()
241 vec[0].iov_len = sizeof(char); in __android_log_pmsg_file_write()
243 vec[1].iov_len = length; in __android_log_pmsg_file_write()
264 vec[2].iov_len = transfer; in __android_log_pmsg_file_write()
Dlogd_writer.cpp179 newVec[0].iov_len = sizeof(header); in logdWrite()
192 newVec[headerLength].iov_len = sizeof(buffer); in logdWrite()
210 newVec[headerLength].iov_len = sizeof(buffer); in logdWrite()
223 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in logdWrite()
226 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in logdWrite()
227 if (newVec[i].iov_len) { in logdWrite()
Dfake_log_device.cpp333 ssize_t w = write(fd, iov->iov_base, iov->iov_len); in fake_writev()
334 if (w != (ssize_t)iov->iov_len) { in fake_writev()
484 v->iov_len = prefixLen; in showLog()
494 v->iov_len = p - start; in showLog()
501 v->iov_len = suffixLen; in showLog()
572 len += vector[i].iov_len; in fakeLogWritev()
608 len += vector[i].iov_len; in fakeLogWritev()
Duio.h23 size_t iov_len; member
/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c753 iovs[0].iov_len = msg_len / 3; in writev_test()
754 iovs[1].iov_len = msg_len - iovs[0].iov_len; in writev_test()
756 memset(tx0_buf, i + 1, iovs[0].iov_len); in writev_test()
757 memset(tx1_buf, i + 2, iovs[1].iov_len); in writev_test()
786 if (memcmp(tx0_buf, rx_buf, iovs[0].iov_len)) { in writev_test()
791 if (memcmp(tx1_buf, rx_buf + iovs[0].iov_len, iovs[1].iov_len)) { in writev_test()
835 iovs[0].iov_len = msg_len / 3; in readv_test()
836 iovs[1].iov_len = msg_len - iovs[0].iov_len; in readv_test()
839 memset(rx0_buf, i + 2, iovs[0].iov_len); in readv_test()
840 memset(rx1_buf, i + 3, iovs[1].iov_len); in readv_test()
[all …]
/system/core/libstats/
Dstatsd_writer.c215 newVec[0].iov_len = sizeof(header); in statsdWrite()
234 newVec[headerLength].iov_len = sizeof(buffer); in statsdWrite()
247 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in statsdWrite()
250 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in statsdWrite()
251 if (newVec[i].iov_len) { in statsdWrite()
Dstats_event_list.c97 vec[0].iov_len = sizeof(context->tag); in stats_write_list()
99 vec[1].iov_len = len; in stats_write_list()
153 len += vec[i].iov_len; in __write_to_stats_daemon()
/system/core/libsysutils/src/
DSocketClient.cpp115 vec[0].iov_len = sizeof(buf); in sendBinaryMsg()
117 vec[1].iov_len = len; in sendBinaryMsg()
176 vec[0].iov_len = len; in sendData()
219 while ((current < iovcnt) && (written >= iov[current].iov_len)) { in sendDataLockedv()
220 written -= iov[current].iov_len; in sendDataLockedv()
227 iov[current].iov_len -= written; in sendDataLockedv()
/system/netd/server/
DXfrmController.cpp182 logHex(nullptr, reinterpret_cast<char*>(row.iov_base), row.iov_len); in logIov()
291 (*iovecs)[0].iov_len = NLMSG_HDRLEN; in sendMessage()
293 nlMsg.nlmsg_len += iov.iov_len; in sendMessage()
950 len = iov[USERSA].iov_len = fillUserSaInfo(record, &usersa); in updateSecurityAssociation()
951 iov[USERSA_PAD].iov_len = NLMSG_ALIGN(len) - len; in updateSecurityAssociation()
953 len = iov[CRYPT].iov_len = fillNlAttrXfrmAlgoEnc(record.crypt, &crypt); in updateSecurityAssociation()
954 iov[CRYPT_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
956 len = iov[AUTH].iov_len = fillNlAttrXfrmAlgoAuth(record.auth, &auth); in updateSecurityAssociation()
957 iov[AUTH_PAD].iov_len = NLA_ALIGN(len) - len; in updateSecurityAssociation()
959 len = iov[AEAD].iov_len = fillNlAttrXfrmAlgoAead(record.aead, &aead); in updateSecurityAssociation()
[all …]
DNetlinkCommands.cpp84 iov[0].iov_len = sizeof(nlmsg); in sendNetlinkRequest()
86 nlmsg.nlmsg_len += iov[i].iov_len; in sendNetlinkRequest()
/system/core/logd/
DLogAudit.cpp258 iov[0].iov_len = in logPrint()
261 iov[1].iov_len = strlen(last_str); in logPrint()
263 iov[2].iov_len = denial_metadata.length(); in logPrint()
266 iov[3].iov_len = strlen(resume); in logPrint()
269 iov[3].iov_len = strlen(newline); in logPrint()
286 iov[0].iov_len = info ? sizeof(log_info) : sizeof(log_warning); in logPrint()
288 iov[1].iov_len = strlen(str); in logPrint()
290 iov[2].iov_len = denial_metadata.length(); in logPrint()
292 iov[3].iov_len = strlen(newline); in logPrint()
/system/bt/vendor_libs/linux/interface/
Dh4_protocol.cc39 iov[0].iov_len = sizeof(type); in Send()
41 iov[1].iov_len = length; in Send()
/system/core/libmemunreachable/
DLeakPipe.cpp35 iov.iov_len = sizeof(data); in SendFd()
69 iov.iov_len = sizeof(data); in ReceiveFd()
/system/core/libunwindstack/
DMemory.cpp54 .iov_base = &reinterpret_cast<uint8_t*>(dst)[total_read], .iov_len = len, in ProcessVmRead()
72 size_t iov_len = getpagesize() - misalignment; in ProcessVmRead() local
73 iov_len = std::min(iov_len, len); in ProcessVmRead()
75 len -= iov_len; in ProcessVmRead()
76 if (__builtin_add_overflow(cur, iov_len, &cur)) { in ProcessVmRead()
81 src_iovs[iovecs_used].iov_len = iov_len; in ProcessVmRead()
DRegs.cpp51 io.iov_len = buffer.size() * sizeof(uint64_t); in RemoteGet()
57 switch (io.iov_len) { in RemoteGet()
/system/core/adb/sysdeps/
Duio.h25 size_t iov_len; member
/system/libhwbinder/
DBufferedTextOutput.cpp197 vec.iov_len = lastLine-first; in print()
216 vec.iov_len = b->bufferPos; in print()
257 vec.iov_len = b->bufferPos; in popBundle()
DStatic.cpp44 ALOGI("%.*s", (int)vec.iov_len, (const char*) vec.iov_base); in writeLines()
/system/core/trusty/keymaster/ipc/
Dtrusty_keymaster_ipc.cpp77 iov[0] = {.iov_base = &header, .iov_len = sizeof(struct keymaster_message)}; in trusty_keymaster_call()
80 .iov_len = std::min<uint32_t>(KEYMASTER_MAX_BUFFER_LENGTH, in trusty_keymaster_call()
/system/core/debuggerd/handler/
Ddebuggerd_handler.cpp353 {.iov_base = &version, .iov_len = sizeof(version)}, in debuggerd_dispatch_pseudothread()
354 {.iov_base = thread_info->siginfo, .iov_len = sizeof(siginfo_t)}, in debuggerd_dispatch_pseudothread()
355 {.iov_base = thread_info->ucontext, .iov_len = sizeof(ucontext_t)}, in debuggerd_dispatch_pseudothread()
356 {.iov_base = &thread_info->abort_msg, .iov_len = sizeof(uintptr_t)}, in debuggerd_dispatch_pseudothread()
357 {.iov_base = &thread_info->fdsan_table, .iov_len = sizeof(uintptr_t)}, in debuggerd_dispatch_pseudothread()
/system/core/libcutils/
Dklog.cpp68 iov[0].iov_len = strlen(buf); in klog_write()
Dsockets_unix.cpp54 iovec_buffers[i].iov_len = buffers[i].length; in socket_send_buffers()
/system/core/base/
Dcmsg.cpp42 iovec iov = {.iov_base = const_cast<void*>(data), .iov_len = len}; in SendFileDescriptorVector()
84 iovec iov = {.iov_base = const_cast<void*>(data), .iov_len = len}; in ReceiveFileDescriptorVector()
/system/core/libnetutils/
Dpacket.c134 iov[0].iov_len = sizeof(ip); in send_packet()
136 iov[1].iov_len = sizeof(udp); in send_packet()
138 iov[2].iov_len = size; in send_packet()

12