pub struct ScatterGatherBuffer {
mem: GuestMemory,
td: TransferDescriptor,
}Expand description
See xHCI spec 3.2.8 for scatter/gather transfer. It’s used in bulk/interrupt transfers. See 3.2.10 for details.
Fields§
§mem: GuestMemory§td: TransferDescriptorImplementations§
Source§impl ScatterGatherBuffer
impl ScatterGatherBuffer
Sourcepub fn new(
mem: GuestMemory,
td: TransferDescriptor,
) -> Result<ScatterGatherBuffer, Error>
pub fn new( mem: GuestMemory, td: TransferDescriptor, ) -> Result<ScatterGatherBuffer, Error>
Create a new buffer from transfer descriptor.
pub fn is_empty(&self) -> Result<bool, Error>
Sourcefn get_trb_data(
&self,
atrb: &AddressedTrb,
) -> Result<(GuestAddress, usize), Error>
fn get_trb_data( &self, atrb: &AddressedTrb, ) -> Result<(GuestAddress, usize), Error>
Get the guest address and length of the TRB’s data buffer. This is usually a separate buffer pointed to by the TRB, but it can also be within the TRB itself in the case of immediate data.
Auto Trait Implementations§
impl Freeze for ScatterGatherBuffer
impl RefUnwindSafe for ScatterGatherBuffer
impl Send for ScatterGatherBuffer
impl Sync for ScatterGatherBuffer
impl Unpin for ScatterGatherBuffer
impl UnwindSafe for ScatterGatherBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more