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

Function vcpu_lock_one

freebsd/amd64/vmm/vmm_dev.c:113–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113static int
114vcpu_lock_one(struct vmmdev_softc *sc, int vcpu)
115{
116 int error;
117
118 if (vcpu < 0 || vcpu >= vm_get_maxcpus(sc->vm))
119 return (EINVAL);
120
121 error = vcpu_set_state(sc->vm, vcpu, VCPU_FROZEN, true);
122 return (error);
123}
124
125static void
126vcpu_unlock_one(struct vmmdev_softc *sc, int vcpu)

Callers 5

vcpu_lock_allFunction · 0.85
vmmdev_rwFunction · 0.85
vmmdev_ioctlFunction · 0.85
vmmdev_mmap_singleFunction · 0.85
devmem_mmap_singleFunction · 0.85

Calls 2

vm_get_maxcpusFunction · 0.85
vcpu_set_stateFunction · 0.85

Tested by

no test coverage detected