Lines Matching defs:cmsgs
602 /// Use [`cmsgs`][RecvMsg::cmsgs] to access all the control messages present, and
616 pub fn cmsgs(&self) -> CmsgIterator {
716 /// let rtime = match r.cmsgs().next() {
1441 /// Allocates if cmsgs is nonempty.
1475 pub fn sendmsg<S>(fd: RawFd, iov: &[IoSlice<'_>], cmsgs: &[ControlMessage],
1479 let capacity = cmsgs.iter().map(|c| c.space()).sum();
1481 // First size the buffer needed to hold the cmsgs. It must be zeroed,
1485 let mhdr = pack_mhdr_to_send(&mut cmsg_buffer[..], iov, cmsgs, addr);
1497 /// Allocations are performed for cmsgs and to build `msghdr` buffer
1523 cmsgs: C,
1549 for cmsg in cmsgs.as_ref() {
1656 /// `ControlMessageOwned` with [`cmsgs`][RecvMsg::cmsgs].
1884 for cmsg in rmsg.cmsgs() {
1983 cmsgs: C,
1993 // The message header must be initialized before the individual cmsgs.
2021 for cmsg in cmsgs.as_ref() {