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

Function vm_domain_allocate

freebsd/vm/vm_page.c:2058–2070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2056}
2057
2058int
2059vm_domain_allocate(struct vm_domain *vmd, int req, int npages)
2060{
2061 int req_class;
2062
2063 /*
2064 * The page daemon is allowed to dig deeper into the free page list.
2065 */
2066 req_class = req & VM_ALLOC_CLASS_MASK;
2067 if (curproc == pageproc && req_class != VM_ALLOC_INTERRUPT)
2068 req_class = VM_ALLOC_SYSTEM;
2069 return (_vm_domain_allocate(vmd, req_class, npages));
2070}
2071
2072vm_page_t
2073vm_page_alloc_domain_after(vm_object_t object, vm_pindex_t pindex, int domain,

Callers 5

vm_reserv_alloc_contigFunction · 0.85
vm_reserv_alloc_pageFunction · 0.85

Calls 1

_vm_domain_allocateFunction · 0.85

Tested by

no test coverage detected