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

Function pmap_pde

freebsd/amd64/amd64/pmap.c:1413–1426  ·  view source on GitHub ↗

Return a pointer to the PD slot that corresponds to a VA */

Source from the content-addressed store, hash-verified

1411
1412/* Return a pointer to the PD slot that corresponds to a VA */
1413static __inline pd_entry_t *
1414pmap_pde(pmap_t pmap, vm_offset_t va)
1415{
1416 pdp_entry_t *pdpe;
1417 pt_entry_t PG_V;
1418
1419 PG_V = pmap_valid_bit(pmap);
1420 pdpe = pmap_pdpe(pmap, va);
1421 if (pdpe == NULL || (*pdpe & PG_V) == 0)
1422 return (NULL);
1423 KASSERT((*pdpe & PG_PS) == 0,
1424 ("pmap_pde for 1G page, pmap %p va %#lx", pmap, va));
1425 return (pmap_pdpe_to_pde(pdpe, va));
1426}
1427
1428/* Return a pointer to the PT slot that corresponds to a VA */
1429static __inline pt_entry_t *

Callers 15

pmap_pteFunction · 0.70
_pmap_unwire_ptpFunction · 0.70
pmap_allocpteFunction · 0.70
reclaim_pv_chunk_domainFunction · 0.70
pmap_removeFunction · 0.70
pmap_remove_allFunction · 0.70
pmap_enter_largepageFunction · 0.70
pmap_enterFunction · 0.70
pmap_enter_quick_lockedFunction · 0.70
pmap_page_wired_mappingsFunction · 0.70
pmap_page_test_mappingsFunction · 0.70
pmap_is_prefaultableFunction · 0.70

Calls 3

pmap_valid_bitFunction · 0.85
pmap_pdpeFunction · 0.85
pmap_pdpe_to_pdeFunction · 0.70

Tested by

no test coverage detected