Skip to content

Commit

Permalink
Better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanRoyer committed Dec 13, 2023
1 parent b78cf2a commit 2d7aab6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion applications/lspci/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn list_pci_devices() -> Result<(), &'static str> {
}
}

let (msi, msix) = dev.interrupt_support();
let (msi, msix) = dev.modern_interrupt_support();
let supports = |b| match b {
true => "supported",
false => "not supported",
Expand Down
2 changes: 1 addition & 1 deletion kernel/pci/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ impl PciDevice {
///
/// - Returns `(true, _)` if the device supports MSI.
/// - Returns `(_, true)` if the device supports MSI-X.
pub fn interrupt_support(&self) -> (bool, bool) {
pub fn modern_interrupt_support(&self) -> (bool, bool) {
let msi = self.find_pci_capability(PciCapability::Msi).is_some();
let msix = self.find_pci_capability(PciCapability::Msix).is_some();

Expand Down

0 comments on commit 2d7aab6

Please sign in to comment.