Reads at `offset` from this device
(&self, base: u64, offset: u64, data: &mut [u8])
| 41 | impl<B: BusDevice> BusDeviceSync for Mutex<B> { |
| 42 | /// Reads at `offset` from this device |
| 43 | fn read(&self, base: u64, offset: u64, data: &mut [u8]) { |
| 44 | self.lock() |
| 45 | .expect("Failed to acquire device lock") |
| 46 | .read(base, offset, data); |
| 47 | } |
| 48 | /// Writes at `offset` into this device |
| 49 | fn write(&self, base: u64, offset: u64, data: &[u8]) -> Option<Arc<Barrier>> { |
| 50 | self.lock() |