Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloud-hypervisor/cloud-hypervisor
/ segment
Method
segment
pci/src/lib.rs:103–105 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
101
102
impl PciBdf {
103
pub fn segment(&self) -> u16 {
104
((self.0 >> 16) & 0xffff) as u16
105
}
106
107
pub fn bus(&self) -> u8 {
108
((self.0 >> 8) & 0xff) as u8
Callers
4
from_pci_bdf
Method · 0.80
create_viot_table
Function · 0.80
pci_resources
Method · 0.80
remove_device
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected