We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f933b74 commit f2a399dCopy full SHA for f2a399d
rust/kernel/pci.rs
@@ -390,7 +390,9 @@ impl Device {
390
// - by its type invariant `self.as_raw` is always a valid pointer to a `struct pci_dev`.
391
Ok(unsafe { bindings::pci_resource_len(self.as_raw(), bar.try_into()?) })
392
}
393
+}
394
395
+impl Device<device::Bound> {
396
/// Mapps an entire PCI-BAR after performing a region-request on it. I/O operation bound checks
397
/// can be performed on compile time for offsets (plus the requested type size) < SIZE.
398
pub fn iomap_region_sized<const SIZE: usize>(
0 commit comments