Searched refs:CMSG_SPACE (Results 1 – 15 of 15) sorted by relevance
61 #undef CMSG_SPACE62 #define CMSG_SPACE(l) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(l)) macro
209 u_char msg_control[CMSG_SPACE(sizeof(struct in_addr))]; in ngx_sendmsg()211 u_char msg_control[CMSG_SPACE(sizeof(struct in_pktinfo))]; in ngx_sendmsg()215 u_char msg_control6[CMSG_SPACE(sizeof(struct in6_pktinfo))]; in ngx_sendmsg()
26 char space[CMSG_SPACE(sizeof(int))]; in ngx_write_channel()106 char space[CMSG_SPACE(sizeof(int))]; in ngx_read_channel()
52 u_char msg_control[CMSG_SPACE(sizeof(struct in_addr))]; in ngx_event_recvmsg()54 u_char msg_control[CMSG_SPACE(sizeof(struct in_pktinfo))]; in ngx_event_recvmsg()58 u_char msg_control6[CMSG_SPACE(sizeof(struct in6_pktinfo))]; in ngx_event_recvmsg()
38 char buf[CMSG_SPACE(sizeof(int))] = { 0 }; in mlx5_pmd_socket_handle()
2100 if (CMSG_SPACE(datalen) < clen) { in unp_externalize()2101 clen -= CMSG_SPACE(datalen); in unp_externalize()2103 ((caddr_t)cm + CMSG_SPACE(datalen)); in unp_externalize()2372 if (CMSG_SPACE(datalen) < clen) { in unp_internalize()2373 clen -= CMSG_SPACE(datalen); in unp_internalize()2375 ((caddr_t)cm + CMSG_SPACE(datalen)); in unp_internalize()2833 if (CMSG_SPACE(datalen) < clen) { in unp_scan()2834 clen -= CMSG_SPACE(datalen); in unp_scan()2836 ((caddr_t)cm + CMSG_SPACE(datalen)); in unp_scan()
1739 if (CMSG_SPACE((u_int)size) > MCLBYTES) in sbcreatecontrol_how()1741 if (CMSG_SPACE((u_int)size) > MLEN) in sbcreatecontrol_how()1749 KASSERT(CMSG_SPACE((u_int)size) <= M_TRAILINGSPACE(m), in sbcreatecontrol_how()1755 bzero(cp, CMSG_SPACE((u_int)size)); in sbcreatecontrol_how()1758 m->m_len = CMSG_SPACE(size); in sbcreatecontrol_how()
1613 datalen = CMSG_SPACE(cm->cmsg_len - CMSG_SPACE(0)); in m_dispose_extcontrolm()1620 nfd = (cm->cmsg_len - CMSG_SPACE(0)) / in m_dispose_extcontrolm()
36 char ctl[CMSG_SPACE(sizeof(int))]; in memif_msg_send()625 char ctl[CMSG_SPACE(sizeof(int)) + in memif_msg_receive()626 CMSG_SPACE(sizeof(struct ucred))] = { 0 }; in memif_msg_receive()
567 #define CMSG_SPACE(l) (_ALIGN(sizeof(struct cmsghdr)) + _ALIGN(l)) macro
107 char control[CMSG_SPACE(max_fds * sizeof(int))]; in read_fd_message()160 char control[CMSG_SPACE(fdsize)]; in send_fd_message()
193 len += CMSG_SPACE(sizeof(struct sctp_rcvinfo)); in sctp_build_ctl_nchunk()199 len += CMSG_SPACE(sizeof(struct sctp_nxtinfo)); in sctp_build_ctl_nchunk()206 len += CMSG_SPACE(sizeof(struct sctp_extrcvinfo)); in sctp_build_ctl_nchunk()209 len += CMSG_SPACE(sizeof(struct sctp_sndrcvinfo)); in sctp_build_ctl_nchunk()242 cmh = (struct cmsghdr *)((caddr_t)cmh + CMSG_SPACE(sizeof(struct sctp_rcvinfo))); in sctp_build_ctl_nchunk()243 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_rcvinfo)); in sctp_build_ctl_nchunk()264 cmh = (struct cmsghdr *)((caddr_t)cmh + CMSG_SPACE(sizeof(struct sctp_nxtinfo))); in sctp_build_ctl_nchunk()265 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_nxtinfo)); in sctp_build_ctl_nchunk()274 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_extrcvinfo)); in sctp_build_ctl_nchunk()279 SCTP_BUF_LEN(ret) += CMSG_SPACE(sizeof(struct sctp_sndrcvinfo)); in sctp_build_ctl_nchunk()
573 #define CMSG_SPACE(l) (_ALIGN(sizeof(struct cmsghdr)) + _ALIGN(l)) macro
60 char control[CMSG_SPACE(fd_size)]; in vhost_user_write()
269 char control[CMSG_SPACE(sizeof(m->msg.fds))]; in read_msg()670 char control[CMSG_SPACE(fd_size)]; in send_msg()