pub trait DeviceRelocation: Send + Sync {
// Required method
fn move_bar(
&self,
old_base: u64,
new_base: u64,
len: u64,
pci_dev: &mut dyn PciDevice,
) -> Result<(), DeviceRelocationError>;
}Expand description
This trait defines a set of functions which can be triggered whenever a PCI device is modified in any way.