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

Function pmap_is_prefaultable

freebsd/arm64/arm64/pmap.c:5371–5386  ·  view source on GitHub ↗

* pmap_is_prefaultable: * * Return whether or not the specified virtual address is eligible * for prefault. */

Source from the content-addressed store, hash-verified

5369 * for prefault.
5370 */
5371boolean_t
5372pmap_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:

Callers

nothing calls this directly

Calls 1

pmap_pteFunction · 0.70

Tested by

no test coverage detected