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

Function vm_object_pip_sleep

freebsd/vm/vm_object.c:381–387  ·  view source on GitHub ↗

* Atomically drop the object lock and wait for pip to drain. This protects * from sleep/wakeup races due to identity changes. The lock is not re-acquired * on return. */

Source from the content-addressed store, hash-verified

379 * on return.
380 */
381static void
382vm_object_pip_sleep(vm_object_t object, const char *waitid)
383{
384
385 (void)blockcount_sleep(&object->paging_in_progress, &object->lock,
386 waitid, PVM | PDROP);
387}
388
389void
390vm_object_pip_wait(vm_object_t object, const char *waitid)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected