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

Function vm_reserv_level

freebsd/vm/vm_reserv.c:1143–1150  ·  view source on GitHub ↗

* If the given page belongs to a reservation, returns the level of that * reservation. Otherwise, returns -1. */

Source from the content-addressed store, hash-verified

1141 * reservation. Otherwise, returns -1.
1142 */
1143int
1144vm_reserv_level(vm_page_t m)
1145{
1146 vm_reserv_t rv;
1147
1148 rv = vm_reserv_from_page(m);
1149 return (rv->object != NULL ? 0 : -1);
1150}
1151
1152/*
1153 * Returns a reservation level if the given page belongs to a fully populated

Callers

nothing calls this directly

Calls 1

vm_reserv_from_pageFunction · 0.85

Tested by

no test coverage detected