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

Method get_pba_bit

pci/src/msix.rs:488–495  ·  view source on GitHub ↗
(&self, vector: u16)

Source from the content-addressed store, hash-verified

486 }
487
488 fn get_pba_bit(&self, vector: u16) -> u8 {
489 assert!(vector < MAX_MSIX_VECTORS_PER_DEVICE);
490
491 let index: usize = (vector as usize) / BITS_PER_PBA_ENTRY;
492 let shift: usize = (vector as usize) % BITS_PER_PBA_ENTRY;
493
494 ((self.pba_entries[index] >> shift) & 0x0000_0001u64) as u8
495 }
496
497 fn inject_msix_and_clear_pba(&mut self, vector: usize) {
498 // Inject the MSI message

Callers 2

set_msg_ctlMethod · 0.80
write_tableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected