pub struct ExtSriovRegs { /* private fields */ }Expand description
SR-IOV register layout per PCIe spec (64 bytes starting at cap offset).
The raw registers are private because PCI core owns SR-IOV state management. Drivers should use PCI core APIs for operations such as enabling VFs and querying their topology.
Trait Implementations§
Source§impl ExtCapability for ExtSriovRegs
impl ExtCapability for ExtSriovRegs
Source§impl FromBytes for ExtSriovRegs
impl FromBytes for ExtSriovRegs
Source§impl FromZeros for ExtSriovRegs
impl FromZeros for ExtSriovRegs
Source§impl IntoBytes for ExtSriovRegs
impl IntoBytes for ExtSriovRegs
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§impl TryFromBytes for ExtSriovRegs
impl TryFromBytes for ExtSriovRegs
Auto Trait Implementations§
impl Freeze for ExtSriovRegs
impl RefUnwindSafe for ExtSriovRegs
impl Send for ExtSriovRegs
impl Sync for ExtSriovRegs
impl Unpin for ExtSriovRegs
impl UnsafeUnpin for ExtSriovRegs
impl UnwindSafe for ExtSriovRegs
Blanket Implementations§
Source§impl<T> BinaryReaderMut for Twhere
T: FromBytes + IntoBytes,
impl<T> BinaryReaderMut for Twhere
T: FromBytes + IntoBytes,
Source§fn read_from_slice_mut(
&mut self,
reader: &mut UserSliceReader,
offset: &mut i64,
) -> Result<usize, Error>
fn read_from_slice_mut( &mut self, reader: &mut UserSliceReader, offset: &mut i64, ) -> Result<usize, Error>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
impl<S, T> IntoSafeCast<T> for Swhere
T: FromSafeCast<S>,
Source§fn into_safe_cast(self) -> T
fn into_safe_cast(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.Source§impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
impl<S, T> IntoSafeCastArch<T> for Swhere
T: FromSafeCastArch<S>,
Source§fn into_safe_cast_arch(self) -> T
fn into_safe_cast_arch(self) -> T
Convert
self into a T. This operation is guaranteed to be lossless.