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

Function pmap_is_valid_memattr

freebsd/amd64/amd64/pmap.c:2518–2524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2516}
2517
2518boolean_t
2519pmap_is_valid_memattr(pmap_t pmap __unused, vm_memattr_t mode)
2520{
2521
2522 return (mode >= 0 && mode < PAT_INDEX_SIZE &&
2523 pat_index[(int)mode] >= 0);
2524}
2525
2526/*
2527 * Determine the appropriate bits to set in a PTE or PDE for a specified

Callers 1

pmap_cache_bitsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected