Home
last modified time | relevance | path

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

12

/system/core/liblog/
Dlogger_write.c251 len += vec[i].iov_len; in __write_to_log_daemon()
261 if (vec[0].iov_len < 4) { in __write_to_log_daemon()
278 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()
462 vec[0].iov_len = 1; in __android_log_buf_write()
464 vec[1].iov_len = strlen(tag) + 1; in __android_log_buf_write()
466 vec[2].iov_len = strlen(msg) + 1; in __android_log_buf_write()
542 vec[0].iov_len = sizeof(tag); in __android_log_bwrite()
544 vec[1].iov_len = len; in __android_log_bwrite()
[all …]
Dpmsg_writer.c109 if (vec[0].iov_len < 4) { in pmsgWrite()
153 newVec[0].iov_len = sizeof(pmsgHeader); in pmsgWrite()
155 newVec[1].iov_len = sizeof(header); in pmsgWrite()
159 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in pmsgWrite()
162 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in pmsgWrite()
163 if (newVec[i].iov_len) { in pmsgWrite()
247 vec[0].iov_len = sizeof(char); in __android_log_pmsg_file_write()
249 vec[1].iov_len = length; in __android_log_pmsg_file_write()
272 vec[2].iov_len = transfer; in __android_log_pmsg_file_write()
Dlogd_writer.c181 newVec[0].iov_len = sizeof(header); in logdWrite()
195 newVec[headerLength].iov_len = sizeof(buffer); in logdWrite()
215 newVec[headerLength].iov_len = sizeof(buffer); in logdWrite()
228 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in logdWrite()
231 newVec[i].iov_len -= payloadSize - LOGGER_ENTRY_MAX_PAYLOAD; in logdWrite()
232 if (newVec[i].iov_len) { in logdWrite()
Duio.c30 int len = vecs->iov_len; in readv()
54 int len = vecs->iov_len; in writev()
Dlocal_logger.c300 len += vec[i].iov_len; in writeToLocalWrite()
323 size_t iov_len = vec[i].iov_len; in writeToLocalWrite() local
324 if (iov_len > len) { in writeToLocalWrite()
325 iov_len = len; in writeToLocalWrite()
327 memcpy(cp, vec[i].iov_base, iov_len); in writeToLocalWrite()
328 len -= iov_len; in writeToLocalWrite()
332 cp += iov_len; in writeToLocalWrite()
Dfake_log_device.c336 ssize_t w = write(fd, iov->iov_base, iov->iov_len); in fake_writev()
337 if (w != (ssize_t)iov->iov_len) { in fake_writev()
495 v->iov_len = prefixLen; in showLog()
505 v->iov_len = p - start; in showLog()
512 v->iov_len = suffixLen; in showLog()
617 len += vector[i].iov_len; in fakeLogWritev()
Dfake_writer.c87 len += vec[i].iov_len; in fakeWrite()
/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c727 iovs[0].iov_len = msg_len / 3; in writev_test()
728 iovs[1].iov_len = msg_len - iovs[0].iov_len; in writev_test()
730 memset(tx0_buf, i + 1, iovs[0].iov_len); in writev_test()
731 memset(tx1_buf, i + 2, iovs[1].iov_len); in writev_test()
760 if (memcmp(tx0_buf, rx_buf, iovs[0].iov_len)) { in writev_test()
765 if (memcmp(tx1_buf, rx_buf + iovs[0].iov_len, iovs[1].iov_len)) { in writev_test()
809 iovs[0].iov_len = msg_len / 3; in readv_test()
810 iovs[1].iov_len = msg_len - iovs[0].iov_len; in readv_test()
813 memset(rx0_buf, i + 2, iovs[0].iov_len); in readv_test()
814 memset(rx1_buf, i + 3, iovs[1].iov_len); in readv_test()
[all …]
/system/core/libsysutils/src/
DSocketClient.cpp113 vec[0].iov_len = sizeof(buf); in sendBinaryMsg()
115 vec[1].iov_len = len; in sendBinaryMsg()
173 vec[0].iov_len = len; in sendData()
216 while ((current < iovcnt) && (written >= iov[current].iov_len)) { in sendDataLockedv()
217 written -= iov[current].iov_len; in sendDataLockedv()
224 iov[current].iov_len -= written; in sendDataLockedv()
/system/core/logd/
DLogAudit.cpp203 iov[0].iov_len = in logPrint()
206 iov[1].iov_len = strlen(last_str); in logPrint()
209 iov[2].iov_len = strlen(resume); in logPrint()
212 iov[2].iov_len = strlen(newline); in logPrint()
228 iov[0].iov_len = info ? sizeof(log_info) : sizeof(log_warning); in logPrint()
230 iov[1].iov_len = strlen(str); in logPrint()
232 iov[2].iov_len = strlen(newline); in logPrint()
DLogBufferElement.cpp248 iovec[0].iov_len = entry.hdr_size; in flushTo()
260 iovec[1].iov_len = entry.len; in flushTo()
/system/netd/server/
DXfrmController.cpp141 logHex(0, reinterpret_cast<char*>(row->iov_base), row->iov_len); in logIov()
218 iov[0].iov_len = NLMSG_HDRLEN; in sendMessage()
220 nlMsg.nlmsg_len += iov[i].iov_len; in sendMessage()
642 len = iov[USERSA].iov_len = fillUserSaInfo(record, &usersa); in createTransportModeSecurityAssociation()
643 iov[USERSA_PAD].iov_len = NLMSG_ALIGN(len) - len; in createTransportModeSecurityAssociation()
645 len = iov[CRYPT].iov_len = fillNlAttrXfrmAlgoEnc(record.crypt, &crypt); in createTransportModeSecurityAssociation()
646 iov[CRYPT_PAD].iov_len = NLA_ALIGN(len) - len; in createTransportModeSecurityAssociation()
648 len = iov[AUTH].iov_len = fillNlAttrXfrmAlgoAuth(record.auth, &auth); in createTransportModeSecurityAssociation()
649 iov[AUTH_PAD].iov_len = NLA_ALIGN(len) - len; in createTransportModeSecurityAssociation()
651 len = iov[ENCAP].iov_len = fillNlAttrXfrmEncapTmpl(record, &encap); in createTransportModeSecurityAssociation()
[all …]
DNetlinkCommands.cpp83 iov[0].iov_len = sizeof(nlmsg); in sendNetlinkRequest()
85 nlmsg.nlmsg_len += iov[i].iov_len; in sendNetlinkRequest()
/system/core/debuggerd/libdebuggerd/arm64/
Dmachine.cpp37 io.iov_len = sizeof(regs); in dump_memory_and_code()
70 io.iov_len = sizeof(r); in dump_registers()
81 io.iov_len = sizeof(f); in dump_registers()
/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/debuggerd/
Dutil.cpp32 iovec iov = { .iov_base = const_cast<void*>(data), .iov_len = len }; in send_fd()
48 iovec iov = { .iov_base = const_cast<void*>(data), .iov_len = len }; in recv_fd()
/system/core/liblog/include/log/
Duio.h38 size_t iov_len; member
/system/libhwbinder/
DBufferedTextOutput.cpp196 vec.iov_len = lastLine-first; in print()
215 vec.iov_len = b->bufferPos; in print()
256 vec.iov_len = b->bufferPos; in popBundle()
DStatic.cpp44 ALOGI("%.*s", (int)vec.iov_len, (const char*) vec.iov_base); in writeLines()
/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()
/system/core/libcutils/
Dklog.cpp67 iov[0].iov_len = strlen(buf); in klog_write()
Dsockets_unix.cpp90 iovec_buffers[i].iov_len = buffers[i].length; in socket_send_buffers()
/system/core/libion/
Dion_test.c123 .iov_len = sizeof num_fd, in ion_share_test()
177 .iov_len = sizeof child_buf, in ion_share_test()
/system/core/libunwindstack/
DMemory.cpp207 local_io.iov_len = size; in Read()
211 remote_io.iov_len = size; in Read()

12