Returns true, if the device claims to have a PCI capability list.
(&self)
| 913 | |
| 914 | /// Returns true, if the device claims to have a PCI capability list. |
| 915 | fn has_capabilities(&self) -> bool { |
| 916 | let status = self.vfio_wrapper.read_config_word(PCI_CONFIG_STATUS_OFFSET); |
| 917 | status & PCI_CONFIG_STATUS_CAPABILITIES_LIST != 0 |
| 918 | } |
| 919 | |
| 920 | fn get_msix_cap_idx(&self) -> Option<usize> { |
| 921 | if !self.has_capabilities() { |
no test coverage detected