MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / table_accessed

Method table_accessed

pci/src/vfio.rs:184–190  ·  view source on GitHub ↗
(&self, bar_index: u32, offset: u64)

Source from the content-addressed store, hash-verified

182 }
183
184 fn table_accessed(&self, bar_index: u32, offset: u64) -> bool {
185 let table_offset: u64 = u64::from(self.cap.table_offset());
186 let table_size: u64 = u64::from(self.cap.table_size()) * (MSIX_TABLE_ENTRY_SIZE as u64);
187 let table_bir: u32 = self.cap.table_bir();
188
189 bar_index == table_bir && offset >= table_offset && offset < table_offset + table_size
190 }
191}
192
193pub(crate) struct Interrupt {

Callers 1

msix_table_accessedMethod · 0.80

Calls 3

table_offsetMethod · 0.80
table_sizeMethod · 0.80
table_birMethod · 0.80

Tested by

no test coverage detected