Lines Matching refs:msg_hdr
320 msghdr msg_hdr = {}; in Send() local
322 msg_hdr.msg_iov = &iov; in Send()
323 msg_hdr.msg_iovlen = 1; in Send()
331 msg_hdr.msg_control = control_buf; in Send()
332 msg_hdr.msg_controllen = control_buf_len; in Send()
333 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&msg_hdr); in Send()
338 msg_hdr.msg_controllen = cmsg->cmsg_len; in Send()
343 const ssize_t sz = PERFETTO_EINTR(sendmsg(*fd_, &msg_hdr, kNoSigPipe)); in Send()
402 msghdr msg_hdr = {}; in Receive() local
404 msg_hdr.msg_iov = &iov; in Receive()
405 msg_hdr.msg_iovlen = 1; in Receive()
409 msg_hdr.msg_control = control_buf; in Receive()
410 msg_hdr.msg_controllen = static_cast<CBufLenType>(CMSG_SPACE(sizeof(int))); in Receive()
411 PERFETTO_CHECK(msg_hdr.msg_controllen <= sizeof(control_buf)); in Receive()
413 const ssize_t sz = PERFETTO_EINTR(recvmsg(*fd_, &msg_hdr, kNoSigPipe)); in Receive()
428 if (msg_hdr.msg_controllen > 0) { in Receive()
429 for (cmsghdr* cmsg = CMSG_FIRSTHDR(&msg_hdr); cmsg; in Receive()
430 cmsg = CMSG_NXTHDR(&msg_hdr, cmsg)) { in Receive()
441 if (msg_hdr.msg_flags & MSG_TRUNC || msg_hdr.msg_flags & MSG_CTRUNC) { in Receive()