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

Function vm_object_busy

freebsd/vm/vm_object.c:2456–2465  ·  view source on GitHub ↗

* Busy the vm object. This prevents new pages belonging to the object from * becoming busy. Existing pages persist as busy. Callers are responsible * for checking page state before proceeding. */

Source from the content-addressed store, hash-verified

2454 * for checking page state before proceeding.
2455 */
2456void
2457vm_object_busy(vm_object_t obj)
2458{
2459
2460 VM_OBJECT_ASSERT_LOCKED(obj);
2461
2462 blockcount_acquire(&obj->busy, 1);
2463 /* The fence is required to order loads of page busy. */
2464 atomic_thread_fence_acq_rel();
2465}
2466
2467void
2468vm_object_unbusy(vm_object_t obj)

Callers 1

vm_fault_soft_fastFunction · 0.85

Calls 2

blockcount_acquireFunction · 0.85

Tested by

no test coverage detected