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

Function vm_phys_alloc_pages

freebsd/vm/vm_phys.c:800–812  ·  view source on GitHub ↗

* Allocate a contiguous, power of two-sized set of physical pages * from the free lists. * * The free page queues must be locked. */

Source from the content-addressed store, hash-verified

798 * The free page queues must be locked.
799 */
800vm_page_t
801vm_phys_alloc_pages(int domain, int pool, int order)
802{
803 vm_page_t m;
804 int freelist;
805
806 for (freelist = 0; freelist < VM_NFREELIST; freelist++) {
807 m = vm_phys_alloc_freelist_pages(domain, freelist, pool, order);
808 if (m != NULL)
809 return (m);
810 }
811 return (NULL);
812}
813
814/*
815 * Allocate a contiguous, power of two-sized set of physical pages from the

Callers 2

vm_reserv_alloc_pageFunction · 0.85

Calls 1

Tested by

no test coverage detected