pub struct MsixTableRegion { /* private fields */ }Implementations§
Source§impl MsixTableRegion
impl MsixTableRegion
Sourcepub unsafe fn new(base: NonNull<u8>, entries: u16) -> Self
pub unsafe fn new(base: NonNull<u8>, entries: u16) -> Self
Creates an MSI-X table view over a mapped MSI-X table range.
§Safety
base must point to the first MSI-X table entry of a writable mapped
BAR range that contains entries complete table entries. The caller must
keep the mapping alive and serialize configuration-time table writes.
pub const fn entries(&self) -> u16
pub fn entry(&self, index: u16) -> Result<MsixTableEntry, MsixError>
pub fn program_masked( &self, index: u16, message: MsiMessage, ) -> Result<(), MsixError>
pub fn mask(&self, index: u16) -> Result<(), MsixError>
pub fn unmask(&self, index: u16) -> Result<(), MsixError>
Trait Implementations§
impl Send for MsixTableRegion
Auto Trait Implementations§
impl !Sync for MsixTableRegion
impl Freeze for MsixTableRegion
impl RefUnwindSafe for MsixTableRegion
impl Unpin for MsixTableRegion
impl UnsafeUnpin for MsixTableRegion
impl UnwindSafe for MsixTableRegion
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