| 169 | } |
| 170 | |
| 171 | static struct vmmdev_softc * |
| 172 | vmmdev_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 | |
| 188 | static struct vmmdev_softc * |
| 189 | vmmdev_lookup2(struct cdev *cdev) |
no test coverage detected