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

Function pmap_pte

freebsd/amd64/amd64/pmap.c:1441–1454  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1439
1440/* Return a pointer to the PT slot that corresponds to a VA */
1441static __inline pt_entry_t *
1442pmap_pte(pmap_t pmap, vm_offset_t va)
1443{
1444 pd_entry_t *pde;
1445 pt_entry_t PG_V;
1446
1447 PG_V = pmap_valid_bit(pmap);
1448 pde = pmap_pde(pmap, va);
1449 if (pde == NULL || (*pde & PG_V) == 0)
1450 return (NULL);
1451 if ((*pde & PG_PS) != 0) /* compat with i386 pmap_pte() */
1452 return ((pt_entry_t *)pde);
1453 return (pmap_pde_to_pte(pde, va));
1454}
1455
1456static __inline void
1457pmap_resident_count_inc(pmap_t pmap, int count)

Callers 2

pmap_page_wired_mappingsFunction · 0.70
pmap_page_test_mappingsFunction · 0.70

Calls 3

pmap_valid_bitFunction · 0.85
pmap_pdeFunction · 0.70
pmap_pde_to_pteFunction · 0.70

Tested by

no test coverage detected