fn avail_idx(&self, mem: &GuestMemoryMmap) -> Wrapping<u16> {
        // Bound checks for queue inner data have already been performed, at device activation time,
        // via `self.is_valid()`, so it's safe to unwrap and use unchecked offsets here.
        // Note: the `MmioTransport` code ensures that queue addresses cannot be changed by the guest
        //       after device activation, so we can be certain that no change has occured since
        //       the last `self.is_valid()` check.
        let addr = self.avail_ring.unchecked_add(2);
        Wrapping(mem.read_obj::<u16>(addr).unwrap())
    }
/// Fetch the available ring index (`virtq_avail->idx`) from guest memory.
/// This is written by the driver, to indicate the next slot that will be filled in the avail
/// ring.
Fetch the available ring index (`virtq_avail->idx`) from guest memory.
This is written by the driver, to indicate the next slot that will be filled in the avail
ring.
Fetch the available ring index ( ` virtq_avail - > idx ` ) from guest memory . This is written by the driver to indicate the next slot that will be filled in the avail ring .
fn avail_idx(&self, mem: &GuestMemoryMmap) -> Wrapping<u16> {
        // Bound checks for queue inner data have already been performed, at device activation time,
        // via `self.is_valid()`, so it's safe to unwrap and use unchecked offsets here.
        // Note: the `MmioTransport` code ensures that queue addresses cannot be changed by the guest
        //       after device activation, so we can be certain that no change has occured since
        //       the last `self.is_valid()` check.
        let addr = self.avail_ring.unchecked_add(2);
        Wrapping(mem.read_obj::<u16>(addr).unwrap())
    }
fn avail_idx ( & self , mem : & GuestMemoryMmap ) -> Wrapping < u16 > { // Bound checks for queue inner data have already been performed, at device activation time, // via `self.is_valid()`, so it's safe to unwrap and use unchecked offsets here. // Note: the `MmioTransport` code ensures that queue addresses cannot be changed by the guest //       after device activation, so we can be certain that no change has occured since //       the last `self.is_valid()` check. let addr = self . avail_ring . unchecked_add ( 2 ) ; Wrapping ( mem . read_obj :: < u16 > ( addr ) . unwrap ( ) ) }
Fetch the available ring index (`virtq_avail->idx`) from guest memory.
Fetch the available ring index ( ` virtq_avail - > idx ` ) from guest memory .
&self
mem
&GuestMemoryMmap
&self
mem
&GuestMemoryMmap