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

Function vm_reserv_size

freebsd/vm/vm_reserv.c:1412–1424  ·  view source on GitHub ↗

* Returns the size (in bytes) of a reservation of the specified level. */

Source from the content-addressed store, hash-verified

1410 * Returns the size (in bytes) of a reservation of the specified level.
1411 */
1412int
1413vm_reserv_size(int level)
1414{
1415
1416 switch (level) {
1417 case 0:
1418 return (VM_LEVEL_0_SIZE);
1419 case -1:
1420 return (PAGE_SIZE);
1421 default:
1422 return (0);
1423 }
1424}
1425
1426/*
1427 * Allocates the virtual and physical memory required by the reservation

Callers 1

vm_page_scan_contigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected