* pmap_is_prefaultable: * * Return whether or not the specified virtual address is eligible * for prefault. */
| 5369 | * for prefault. |
| 5370 | */ |
| 5371 | boolean_t |
| 5372 | pmap_is_prefaultable(pmap_t pmap, vm_offset_t addr) |
| 5373 | { |
| 5374 | pt_entry_t *pte; |
| 5375 | boolean_t rv; |
| 5376 | int lvl; |
| 5377 | |
| 5378 | rv = FALSE; |
| 5379 | PMAP_LOCK(pmap); |
| 5380 | pte = pmap_pte(pmap, addr, &lvl); |
| 5381 | if (pte != NULL && pmap_load(pte) != 0) { |
| 5382 | rv = TRUE; |
| 5383 | } |
| 5384 | PMAP_UNLOCK(pmap); |
| 5385 | return (rv); |
| 5386 | } |
| 5387 | |
| 5388 | /* |
| 5389 | * pmap_is_referenced: |
nothing calls this directly
no test coverage detected