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

Function vm_phys_set_pool

freebsd/vm/vm_phys.c:1279–1286  ·  view source on GitHub ↗

* Set the pool for a contiguous, power of two-sized set of physical pages. */

Source from the content-addressed store, hash-verified

1277 * Set the pool for a contiguous, power of two-sized set of physical pages.
1278 */
1279void
1280vm_phys_set_pool(int pool, vm_page_t m, int order)
1281{
1282 vm_page_t m_tmp;
1283
1284 for (m_tmp = m; m_tmp < &m[1 << order]; m_tmp++)
1285 m_tmp->pool = pool;
1286}
1287
1288/*
1289 * Search for the given physical page "m" in the free lists. If the search

Callers 4

vm_phys_alloc_npagesFunction · 0.85
vm_phys_free_pagesFunction · 0.85
vm_phys_alloc_seg_contigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected