Home
last modified time | relevance | path

Searched refs:iov (Results 1 – 25 of 35) 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()
Duevent.cpp54 struct iovec iov = {buffer, length}; in uevent_kernel_recv() local
58 &addr, sizeof(addr), &iov, 1, control, sizeof(control), 0, in uevent_kernel_recv()
/system/netd/server/
DNetlinkCommands.cpp86 OPTNONE int sendNetlinkRequest(uint16_t action, uint16_t flags, iovec* iov, int iovlen, in sendNetlinkRequest() argument
97 iov[0].iov_base = &nlmsg; in sendNetlinkRequest()
98 iov[0].iov_len = sizeof(nlmsg); in sendNetlinkRequest()
100 nlmsg.nlmsg_len += iov[i].iov_len; in sendNetlinkRequest()
103 ssize_t writevRet = writev(sock, iov, iovlen); in sendNetlinkRequest()
105 iov[0] = {nullptr, 0}; in sendNetlinkRequest()
125 int sendNetlinkRequest(uint16_t action, uint16_t flags, iovec* iov, int iovlen) { in sendNetlinkRequest() argument
126 return sendNetlinkRequest(action, flags, iov, iovlen, nullptr); in sendNetlinkRequest()
199 iovec iov[] = { in rtNetlinkFlush() local
205 if ((ret = sendNetlinkRequest(getAction, flags, iov, ARRAY_SIZE(iov), &callback)) != 0) { in rtNetlinkFlush()
DSockDiag.cpp113 iovec *iov, int iovcnt) { in sendDumpRequest() argument
131 iov[0].iov_base = &request; in sendDumpRequest()
132 iov[0].iov_len = sizeof(request); in sendDumpRequest()
134 len += iov[i].iov_len; in sendDumpRequest()
138 ssize_t writevRet = writev(mSock, iov, iovcnt); in sendDumpRequest()
140 iov[0] = {nullptr, 0}; in sendDumpRequest()
149 iovec iov[] = { in sendDumpRequest() local
152 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest()
214 iovec iov[] = { in sendDumpRequest() local
221 return sendDumpRequest(proto, family, 0, states, iov, ARRAY_SIZE(iov)); in sendDumpRequest()
[all …]
DXfrmController.cpp180 void logIov(const std::vector<iovec>& iov) { in logIov() argument
181 for (const iovec& row : iov) { in logIov()
292 for (const iovec& iov : *iovecs) { in sendMessage()
293 nlMsg.nlmsg_len += iov.iov_len; in sendMessage()
431 std::vector<iovec> iov = {{nullptr, 0}, // reserved for the eventual addition of a NLMSG_HDR in flushSaDb() local
435 return s.sendMessage(XFRM_MSG_FLUSHSA, NETLINK_REQUEST_FLAGS, 0, &iov); in flushSaDb()
439 std::vector<iovec> iov = {{nullptr, 0}}; // reserved for the eventual addition of a NLMSG_HDR in flushPolicyDb() local
440 return s.sendMessage(XFRM_MSG_FLUSHPOLICY, NETLINK_REQUEST_FLAGS, 0, &iov); in flushPolicyDb()
973 std::vector<iovec> iov = { in updateSecurityAssociation() local
1016 len = iov[USERSA].iov_len = fillUserSaInfo(record, &usersa); in updateSecurityAssociation()
[all …]
DRouteControllerTest.cpp76 iovec iov[] = { in TEST_F() local
82 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/trusty/confirmationui/fuzz/
Dmsg_fuzzer.cpp85 iovec iov[] = { in Init() local
100 int rc = tipc_send(chan, iov, countof(iov), &shm, 1); in Init()
120 iovec iov[] = { in Msg() local
134 int rc = tipc_send(chan, iov, countof(iov), NULL, 0); in Msg()
139 rc = readv(chan, iov, countof(iov)); in Msg()
/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
207 ssize_t rc = TEMP_FAILURE_RETRY(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/trusty/utils/acvp/
Dtrusty_modulewrapper.cpp113 struct iovec iov = { in SendMessage() local
141 int rc = tipc_send(tipc_fd_, &iov, 1, &shm, 1); in SendMessage()
185 iovec& iov = iovs[i]; in ForwardResponse() local
188 if (done > iov.iov_len) { in ForwardResponse()
189 done = iov.iov_len; in ForwardResponse()
192 iov.iov_base = reinterpret_cast<uint8_t*>(iov.iov_base) + done; in ForwardResponse()
193 iov.iov_len -= done; in ForwardResponse()
196 if (iov.iov_len == 0) { in ForwardResponse()
/system/core/trusty/confirmationui/
DTrustyApp.cpp50 iovec iov[] = { in TrustyRpc() local
61 int rc = tipc_send(handle_, iov, countof(iov), NULL, 0); in TrustyRpc()
67 rc = readv(handle_, iov, countof(iov)); in TrustyRpc()
112 iovec iov[] = { in TrustyApp() local
127 int rc = tipc_send(tipc_handle, iov, 2, &shm, 1); in TrustyApp()
/system/unwinding/libunwindstack/
DMemoryMte.cpp34 iovec iov = {&tag, 1}; in ReadTag() local
35 if (ptrace(PTRACE_PEEKMTETAGS, pid_, reinterpret_cast<void*>(addr), &iov) != 0 || in ReadTag()
36 iov.iov_len != 1) { in ReadTag()
/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/logging/logd/
DLogAudit.cpp245 struct iovec iov[4]; in logPrint() local
251 iov[0].iov_base = info ? const_cast<char*>(log_info) : const_cast<char*>(log_warning); in logPrint()
252 iov[0].iov_len = info ? sizeof(log_info) : sizeof(log_warning); in logPrint()
253 iov[1].iov_base = str; in logPrint()
254 iov[1].iov_len = strlen(str); in logPrint()
255 iov[2].iov_base = const_cast<char*>(denial_metadata.c_str()); in logPrint()
256 iov[2].iov_len = denial_metadata.length(); in logPrint()
257 iov[3].iov_base = const_cast<char*>(newline); in logPrint()
258 iov[3].iov_len = strlen(newline); in logPrint()
260 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/core/trusty/libtrusty/
Dtrusty.c55 ssize_t tipc_send(int fd, const struct iovec* iov, int iovcnt, struct trusty_shm* shms, in tipc_send() argument
58 req.iov = (__u64)iov; in tipc_send()
/system/netd/client/
DFwmarkClient.cpp86 iovec iov[2] = { in send() local
92 message.msg_iov = iov; in send()
93 message.msg_iovlen = std::size(iov); in send()
/system/core/debuggerd/libdebuggerd/
Dutility.cpp110 struct iovec iov[3]; in _VLOG() local
111 iov[0].iov_base = const_cast<char*>(prefix); in _VLOG()
112 iov[0].iov_len = strlen(prefix); in _VLOG()
113 iov[1].iov_base = const_cast<char*>(fragment.c_str()); in _VLOG()
114 iov[1].iov_len = fragment.length(); in _VLOG()
115 iov[2].iov_base = const_cast<char*>("\n"); in _VLOG()
116 iov[2].iov_len = 1; in _VLOG()
117 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 = 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/core/trusty/keymaster/ipc/
Dtrusty_keymaster_ipc.cpp136 struct iovec iov[2]; in trusty_keymaster_call_2() local
138 iov[0] = {.iov_base = &header, .iov_len = sizeof(struct keymaster_message)}; in trusty_keymaster_call_2()
160 iov[1] = {.iov_base = write_pos, .iov_len = buffer_size}; in trusty_keymaster_call_2()
187 rc = readv(handle_, iov, 2); in trusty_keymaster_call_2()
/system/core/trusty/libtrusty/include/trusty/
Dtipc.h28 ssize_t tipc_send(int fd, const struct iovec* iov, int iovcnt, struct trusty_shm* shm, int shmcnt);
Dipc.h68 __u64 iov; member
/system/core/trusty/apploader/fuzz/
Dapp_fuzzer.cpp53 iovec iov[] = { in SendLoadMsg() local
68 int rc = tipc_send(chan, iov, 2, &shm, 1); in SendLoadMsg()

12