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

Function vmmdev_lookup

freebsd/amd64/vmm/vmm_dev.c:171–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171static struct vmmdev_softc *
172vmmdev_lookup(const char *name)
173{
174 struct vmmdev_softc *sc;
175
176#ifdef notyet /* XXX kernel is not compiled with invariants */
177 mtx_assert(&vmmdev_mtx, MA_OWNED);
178#endif
179
180 SLIST_FOREACH(sc, &head, link) {
181 if (strcmp(name, vm_name(sc->vm)) == 0)
182 break;
183 }
184
185 return (sc);
186}
187
188static struct vmmdev_softc *
189vmmdev_lookup2(struct cdev *cdev)

Callers 3

sysctl_vmm_destroyFunction · 0.85
sysctl_vmm_createFunction · 0.85
devmem_create_cdevFunction · 0.85

Calls 3

mtx_assertFunction · 0.85
strcmpFunction · 0.85
vm_nameFunction · 0.85

Tested by

no test coverage detected