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

Function vm_domain_set

freebsd/vm/vm_page.c:3076–3090  ·  view source on GitHub ↗

* Set the domain in the appropriate page level domainset. */

Source from the content-addressed store, hash-verified

3074 * Set the domain in the appropriate page level domainset.
3075 */
3076void
3077vm_domain_set(struct vm_domain *vmd)
3078{
3079
3080 mtx_lock(&vm_domainset_lock);
3081 if (!vmd->vmd_minset && vm_paging_min(vmd)) {
3082 vmd->vmd_minset = 1;
3083 DOMAINSET_SET(vmd->vmd_domain, &vm_min_domains);
3084 }
3085 if (!vmd->vmd_severeset && vm_paging_severe(vmd)) {
3086 vmd->vmd_severeset = 1;
3087 DOMAINSET_SET(vmd->vmd_domain, &vm_severe_domains);
3088 }
3089 mtx_unlock(&vm_domainset_lock);
3090}
3091
3092/*
3093 * Clear the domain from the appropriate page level domainset.

Callers 1

_vm_domain_allocateFunction · 0.85

Calls 4

vm_paging_minFunction · 0.85
vm_paging_severeFunction · 0.85
mtx_lockFunction · 0.50
mtx_unlockFunction · 0.50

Tested by

no test coverage detected