pub struct Adapter<T: Driver>(/* private fields */);
Expand description
An adapter for the registration of PCI drivers.
Trait Implementations§
Source§impl<T: Driver + 'static> RegistrationOps for Adapter<T>
impl<T: Driver + 'static> RegistrationOps for Adapter<T>
Source§type RegType = pci_driver
type RegType = pci_driver
The type that holds information about the registration. This is typically a struct defined
by the C portion of the kernel.
Source§unsafe fn register(
pdrv: &Opaque<Self::RegType>,
name: &'static CStr,
module: &'static ThisModule,
) -> Result
unsafe fn register( pdrv: &Opaque<Self::RegType>, name: &'static CStr, module: &'static ThisModule, ) -> Result
Registers a driver. Read more
Source§unsafe fn unregister(pdrv: &Opaque<Self::RegType>)
unsafe fn unregister(pdrv: &Opaque<Self::RegType>)
Unregisters a driver previously registered with
RegistrationOps::register
. Read moreAuto Trait Implementations§
impl<T> Freeze for Adapter<T>where
T: Freeze,
impl<T> RefUnwindSafe for Adapter<T>where
T: RefUnwindSafe,
impl<T> Send for Adapter<T>
impl<T> Sync for Adapter<T>where
T: Sync,
impl<T> Unpin for Adapter<T>where
T: Unpin,
impl<T> UnwindSafe for Adapter<T>where
T: UnwindSafe,
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