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

Method parse_msix_capabilities

pci/src/vfio.rs:847–859  ·  view source on GitHub ↗
(&mut self, cap: u8)

Source from the content-addressed store, hash-verified

845 }
846
847 fn parse_msix_capabilities(&mut self, cap: u8) -> MsixCap {
848 let msg_ctl = self.vfio_wrapper.read_config_word((cap + 2).into());
849
850 let table = self.vfio_wrapper.read_config_dword((cap + 4).into());
851
852 let pba = self.vfio_wrapper.read_config_dword((cap + 8).into());
853
854 MsixCap {
855 msg_ctl,
856 table,
857 pba,
858 }
859 }
860
861 fn initialize_msix(
862 &mut self,

Callers 1

parse_capabilitiesMethod · 0.80

Calls 2

read_config_wordMethod · 0.80
read_config_dwordMethod · 0.80

Tested by

no test coverage detected