MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ppt_attach

Function ppt_attach

freebsd/amd64/vmm/io/ppt.c:155–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155static int
156ppt_attach(device_t dev)
157{
158 struct pptdev *ppt;
159
160 ppt = device_get_softc(dev);
161
162 iommu_remove_device(iommu_host_domain(), pci_get_rid(dev));
163 num_pptdevs++;
164 TAILQ_INSERT_TAIL(&pptdev_list, ppt, next);
165 ppt->dev = dev;
166
167 if (bootverbose)
168 device_printf(dev, "attached\n");
169
170 return (0);
171}
172
173static int
174ppt_detach(device_t dev)

Callers

nothing calls this directly

Calls 4

device_get_softcFunction · 0.85
iommu_remove_deviceFunction · 0.85
iommu_host_domainFunction · 0.85
device_printfFunction · 0.85

Tested by

no test coverage detected