vmm: improve misc documentation

This improves the documentation at various places.

On-behalf-of: SAP philipp.schuster@sap.com
Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
Philipp Schuster
2026-04-09 22:24:50 +02:00
committed by Rob Bradford
parent 5ff4696cea
commit 7eab5901ad
2 changed files with 17 additions and 3 deletions

View File

@@ -147,6 +147,9 @@ impl Bus {
None
}
/// Inserts a bus device into the bus.
///
/// The bus will only hold a weak reference to the object.
#[allow(clippy::needless_pass_by_value)]
pub fn insert(&self, device: Arc<dyn BusDeviceSync>, base: u64, len: u64) -> Result<()> {
if len == 0 {