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

Function vm_page_init_page

freebsd/vm/vm_page.c:500–516  ·  view source on GitHub ↗

* Initialize a physical page in preparation for adding it to the free * lists. */

Source from the content-addressed store, hash-verified

498 * lists.
499 */
500static void
501vm_page_init_page(vm_page_t m, vm_paddr_t pa, int segind)
502{
503
504 m->object = NULL;
505 m->ref_count = 0;
506 m->busy_lock = VPB_FREED;
507 m->flags = m->a.flags = 0;
508 m->phys_addr = pa;
509 m->a.queue = PQ_NONE;
510 m->psind = 0;
511 m->segind = segind;
512 m->order = VM_NFREEORDER;
513 m->pool = VM_FREEPOOL_DEFAULT;
514 m->valid = m->dirty = 0;
515 pmap_page_init(m);
516}
517
518#ifndef PMAP_HAS_PAGE_ARRAY
519static vm_paddr_t

Callers 1

vm_page_startupFunction · 0.85

Calls 1

pmap_page_initFunction · 0.50

Tested by

no test coverage detected