* Returns the size (in bytes) of a reservation of the specified level. */
| 1410 | * Returns the size (in bytes) of a reservation of the specified level. |
| 1411 | */ |
| 1412 | int |
| 1413 | vm_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 |
no outgoing calls
no test coverage detected