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

Function pmap_pdpe

freebsd/amd64/amd64/pmap.c:1387–1398  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1385
1386/* Return a pointer to the PDP slot that corresponds to a VA */
1387static __inline pdp_entry_t *
1388pmap_pdpe(pmap_t pmap, vm_offset_t va)
1389{
1390 pml4_entry_t *pml4e;
1391 pt_entry_t PG_V;
1392
1393 PG_V = pmap_valid_bit(pmap);
1394 pml4e = pmap_pml4e(pmap, va);
1395 if (pml4e == NULL || (*pml4e & PG_V) == 0)
1396 return (NULL);
1397 return (pmap_pml4e_to_pdpe(pml4e, va));
1398}
1399
1400/* Return a pointer to the PD slot that corresponds to a VA */
1401static __inline pd_entry_t *

Callers 14

pmap_pdeFunction · 0.85
pmap_extractFunction · 0.85
pmap_extract_and_holdFunction · 0.85
_pmap_unwire_ptpFunction · 0.85
pmap_alloc_pdeFunction · 0.85
pmap_page_array_startupFunction · 0.85
pmap_growkernelFunction · 0.85
pmap_remove_pdeFunction · 0.85
pmap_enter_largepageFunction · 0.85
pmap_copyFunction · 0.85
pmap_remove_pagesFunction · 0.85
pmap_change_props_lockedFunction · 0.85

Calls 3

pmap_valid_bitFunction · 0.85
pmap_pml4eFunction · 0.85
pmap_pml4e_to_pdpeFunction · 0.85

Tested by

no test coverage detected