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

Function vm_page_unswappable

freebsd/vm/vm_page.c:4132–4141  ·  view source on GitHub ↗

* Put a page in the PQ_UNSWAPPABLE holding queue. */

Source from the content-addressed store, hash-verified

4130 * Put a page in the PQ_UNSWAPPABLE holding queue.
4131 */
4132void
4133vm_page_unswappable(vm_page_t m)
4134{
4135
4136 KASSERT(!vm_page_wired(m) && (m->oflags & VPO_UNMANAGED) == 0,
4137 ("page %p already unswappable", m));
4138
4139 vm_page_dequeue(m);
4140 vm_page_enqueue(m, PQ_UNSWAPPABLE);
4141}
4142
4143/*
4144 * Release a page back to the page queues in preparation for unwiring.

Callers 1

vm_pageout_flushFunction · 0.85

Calls 3

vm_page_wiredFunction · 0.85
vm_page_dequeueFunction · 0.85
vm_page_enqueueFunction · 0.85

Tested by

no test coverage detected