pub struct Device { /* private fields */ }Implementations§
Source§impl Device
impl Device
pub fn info(&self) -> Result<DeviceInfo>
pub fn region_info(&self, index: u32) -> Result<RegionInfo>
pub fn irq_info(&self, index: u32) -> Result<IrqInfo>
pub fn map(&self, offset: u64, len: usize, write: bool) -> Result<MappedRegion>
pub fn map_msix<I>(&self, start: u32, eventfd: I) -> Result<()>
Sourcepub fn unmap_msix(&self, start: u32, count: u32) -> Result<()>
pub fn unmap_msix(&self, start: u32, count: u32) -> Result<()>
Disable (unmap) a contiguous range of previously mapped MSI-X vectors.
This issues VFIO_DEVICE_SET_IRQS with ACTION_TRIGGER + DATA_NONE and a
non-zero count, which per VFIO semantics removes the eventfd bindings
for the specified range starting at start.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations§
§impl<T> AsSockRef for T
impl<T> AsSockRef for T
§fn as_sock_ref(&self) -> SockRef<'_>
fn as_sock_ref(&self) -> SockRef<'_>
Returns a socket reference.
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