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

Function vm_reserv_level_iffullpop

freebsd/vm/vm_reserv.c:1156–1163  ·  view source on GitHub ↗

* Returns a reservation level if the given page belongs to a fully populated * reservation and -1 otherwise. */

Source from the content-addressed store, hash-verified

1154 * reservation and -1 otherwise.
1155 */
1156int
1157vm_reserv_level_iffullpop(vm_page_t m)
1158{
1159 vm_reserv_t rv;
1160
1161 rv = vm_reserv_from_page(m);
1162 return (rv->popcnt == VM_LEVEL_0_NPAGES ? 0 : -1);
1163}
1164
1165/*
1166 * Remove a partially populated reservation from the queue.

Callers 6

__CONCAT(PMTYPE, enter)Function · 0.85
pmap_enterFunction · 0.85
pmap_enterFunction · 0.85
pmap_enterFunction · 0.85
vm_page_scan_contigFunction · 0.85

Calls 1

vm_reserv_from_pageFunction · 0.85

Tested by

no test coverage detected