Home
last modified time | relevance | path

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

/external/crosvm/data_model/src/
Dsys.rs18 pub struct IoBufMut<'a> { struct
23 impl<'a> IoBufMut<'a> { argument
24 pub fn new(buf: &mut [u8]) -> IoBufMut<'a> { in new()
36 pub unsafe fn from_raw_parts(addr: *mut u8, len: usize) -> IoBufMut<'a> { in from_raw_parts()
37 IoBufMut { in from_raw_parts()
71 pub fn as_iobufs<'slice>(iovs: &'slice [IoBufMut<'_>]) -> &'slice [iovec] { in as_iobufs()
77 impl<'a> AsRef<libc::iovec> for IoBufMut<'a> { implementation
83 impl<'a> AsMut<libc::iovec> for IoBufMut<'a> { implementation
93 unsafe impl<'a> Send for IoBufMut<'a> {} implementation
94 unsafe impl<'a> Sync for IoBufMut<'a> {} implementation
[all …]
Dvolatile_memory.rs33 use crate::{sys::IoBufMut, DataInit};
107 pub struct VolatileSlice<'a>(IoBufMut<'a>);
112 VolatileSlice(IoBufMut::new(buf)) in new()
122 VolatileSlice(IoBufMut::from_raw_parts(addr, len)) in from_raw_parts()
149 IoBufMut::as_iobufs(unsafe { in as_iobufs()
150 slice::from_raw_parts(iovs.as_ptr() as *const IoBufMut, iovs.len()) in as_iobufs() constant
Dlib.rs195 pub use sys::IoBufMut;
/external/crosvm/io_uring/src/
During.rs16 use data_model::IoBufMut;
73 io_vecs: Pin<Box<[IoBufMut<'static>]>>,
260 io_vecs: Pin::from(vec![IoBufMut::new(&mut []); num_sqe].into_boxed_slice()), in new()
331 .map(|iov| IoBufMut::from_raw_parts(iov.iov_base as *mut u8, iov.iov_len)) in add_writev_iter()
351 iovecs: Pin<Box<[IoBufMut<'static>]>>, in add_writev()
389 .map(|iov| IoBufMut::from_raw_parts(iov.iov_base as *mut u8, iov.iov_len)) in add_readv_iter()
409 iovecs: Pin<Box<[IoBufMut<'static>]>>, in add_readv()
694 pending_op_addrs: BTreeMap<UserData, Pin<Box<[IoBufMut<'static>]>>>,
723 fn add_op_data(&self, user_data: UserData, addrs: Pin<Box<[IoBufMut<'static>]>>) { in add_op_data()