Home
last modified time | relevance | path

Searched refs:cmsg_ptr (Results 1 – 1 of 1) sorted by relevance

/external/crosvm/sys_util/src/
Dsock_ctrl_msg.rs57 fn get_next_cmsg(msghdr: &msghdr, cmsg: &cmsghdr, cmsg_ptr: *mut cmsghdr) -> *mut cmsghdr { in get_next_cmsg()
58 let next_cmsg = (cmsg_ptr as *mut u8).wrapping_add(CMSG_ALIGN!(cmsg.cmsg_len)) as *mut cmsghdr; in get_next_cmsg()
194 let mut cmsg_ptr = msg.msg_control as *mut cmsghdr; in raw_recvmsg() localVariable
196 while !cmsg_ptr.is_null() { in raw_recvmsg()
199 let cmsg = unsafe { (cmsg_ptr as *mut cmsghdr).read_unaligned() }; in raw_recvmsg()
205 CMSG_DATA(cmsg_ptr), in raw_recvmsg()
213 cmsg_ptr = get_next_cmsg(&msg, &cmsg, cmsg_ptr); in raw_recvmsg()