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

Function vm_domain_freecnt_inc

freebsd/vm/vm_pagequeue.h:449–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447void pagedaemon_wakeup(int domain);
448
449static inline void
450vm_domain_freecnt_inc(struct vm_domain *vmd, int adj)
451{
452 u_int old, new;
453
454 old = atomic_fetchadd_int(&vmd->vmd_free_count, adj);
455 new = old + adj;
456 /*
457 * Only update bitsets on transitions. Notice we short-circuit the
458 * rest of the checks if we're above min already.
459 */
460 if (old < vmd->vmd_free_min && (new >= vmd->vmd_free_min ||
461 (old < vmd->vmd_free_severe && new >= vmd->vmd_free_severe) ||
462 (old < vmd->vmd_pageout_free_min &&
463 new >= vmd->vmd_pageout_free_min)))
464 vm_domain_clear(vmd);
465}
466
467#endif /* _KERNEL */
468#endif /* !_VM_PAGEQUEUE_ */

Callers 13

vm_page_blacklist_addFunction · 0.85
vm_page_startupFunction · 0.85
vm_page_zone_importFunction · 0.85
vm_page_zone_releaseFunction · 0.85
vm_page_reclaim_runFunction · 0.85
vm_page_free_toqFunction · 0.85
vm_reserv_depopulateFunction · 0.85
vm_reserv_alloc_contigFunction · 0.85
vm_reserv_alloc_pageFunction · 0.85

Calls 2

vm_domain_clearFunction · 0.85
atomic_fetchadd_intFunction · 0.50

Tested by

no test coverage detected