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

Function pmap_pte2_release

freebsd/arm/arm/pmap-v6.c:1892–1899  ·  view source on GitHub ↗

* Releases a pte2 that was obtained from pmap_pte2(). * Be prepared for the pte2p being NULL. */

Source from the content-addressed store, hash-verified

1890 * Be prepared for the pte2p being NULL.
1891 */
1892static __inline void
1893pmap_pte2_release(pt2_entry_t *pte2p)
1894{
1895
1896 if ((pt2_entry_t *)(trunc_page((vm_offset_t)pte2p)) == PADDR2) {
1897 mtx_unlock(&PMAP2mutex);
1898 }
1899}
1900
1901/*
1902 * Super fast pmap_pte2 routine best used when scanning

Callers 5

pmap_extractFunction · 0.85
pmap_extract_and_holdFunction · 0.85
pmap_pv_reclaimFunction · 0.85
pmap_mincoreFunction · 0.85
pmap_pid_dumpFunction · 0.85

Calls 1

mtx_unlockFunction · 0.50

Tested by

no test coverage detected