MCPcopy 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
102impl 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_bdfMethod · 0.80
create_viot_tableFunction · 0.80
pci_resourcesMethod · 0.80
remove_deviceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected