Skip to content

Commit 4651cd4

Browse files
dianpopaShadowCurse
authored andcommitted
devices: doc for the device bus
Doc for the device bus Signed-off-by: Diana Popa <dpopa@amazon.com>
1 parent b3632f7 commit 4651cd4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vmm/src/devices/bus.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ impl Bus {
230230
None
231231
}
232232

233+
/// Returns the device found at some address.
233234
pub fn get_device(&self, addr: u64) -> Option<(u64, &Mutex<BusDevice>)> {
234235
if let Some((BusRange(start, len), dev)) = self.first_before(addr) {
235236
let offset = addr - start;

0 commit comments

Comments
 (0)