Trait devices::HotPluggable

source ·
pub trait HotPluggable: PciDevice {
    // Required methods
    fn set_pci_address(
        &mut self,
        pci_addr: PciAddress
    ) -> Result<(), PciDeviceError>;
    fn configure_io_bars(&mut self) -> Result<(), PciDeviceError>;
    fn configure_device_bars(&mut self) -> Result<(), PciDeviceError>;
}
Expand description

Additional requirements for a PciDevice to support hotplug. A hotplug device can be configured without access to the SystemAllocator.

Required Methods§

source

fn set_pci_address( &mut self, pci_addr: PciAddress ) -> Result<(), PciDeviceError>

Sets PciAddress to pci_addr. Replaces allocate_address.

source

fn configure_io_bars(&mut self) -> Result<(), PciDeviceError>

Configures IO BAR layout without memory alloc. Replaces allocate_io_bars.

source

fn configure_device_bars(&mut self) -> Result<(), PciDeviceError>

Configure device BAR layout without memory alloc. Replaces allocate_device_bars.

Implementations on Foreign Types§

source§

impl<T: HotPluggable + ?Sized> HotPluggable for Box<T>

Implementors§