Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cloud-hypervisor/cloud-hypervisor
/ device
Method
device
pci/src/lib.rs:111–113 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
109
}
110
111
pub fn device(&self) -> u8 {
112
((self.0 >> 3) & 0x1f) as u8
113
}
114
115
pub fn function(&self) -> u8 {
116
(self.0 & 0x7) as u8
Callers
9
from_pci_bdf
Method · 0.80
add_vfio_device
Method · 0.80
add_pci_device
Method · 0.80
add_vfio_user_device
Method · 0.80
pci_resources
Method · 0.80
add_device
Method · 0.80
add_user_device
Method · 0.80
remove_device
Method · 0.80
hotplug_virtio_pci_device
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected