We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7424de0 commit a56d66fCopy full SHA for a56d66f
src/sys/socket/mod.rs
@@ -1844,6 +1844,17 @@ unsafe fn read_mhdr<'a, S>(
1844
}
1845
1846
1847
+/// Pack pointers to various structures into into msghdr
1848
+///
1849
+/// # Safety
1850
+/// `iov_buffer` and `iov_buffer_len` must point to a slice
1851
+/// of `IoSliceMut` and number of available elements or be a null pointer and 0
1852
1853
+/// `cmsg_buffer` and `cmsg_capacity` must point to a byte buffer used
1854
+/// to store control headers later or be a null pointer and 0 if control
1855
+/// headers are not used
1856
1857
+/// Buffers must remain valid for the whole lifetime of msghdr
1858
unsafe fn pack_mhdr_to_receive<S>(
1859
iov_buffer: *const IoSliceMut,
1860
iov_buffer_len: usize,
0 commit comments