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

Function pmap_qremove

freebsd/mips/mips/pmap.c:964–980  ·  view source on GitHub ↗

* this routine jerks page mappings from the * kernel -- it is meant only for temporary mappings. */

Source from the content-addressed store, hash-verified

962 * kernel -- it is meant only for temporary mappings.
963 */
964void
965pmap_qremove(vm_offset_t va, int count)
966{
967 pt_entry_t *pte;
968 vm_offset_t origva;
969
970 if (count < 1)
971 return;
972 mips_dcache_wbinv_range_index(va, PAGE_SIZE * count);
973 origva = va;
974 do {
975 pte = pmap_pte(kernel_pmap, va);
976 *pte = PTE_G;
977 va += PAGE_SIZE;
978 } while (--count > 0);
979 pmap_invalidate_range(kernel_pmap, origva, va);
980}
981
982/***************************************************
983 * Page table page management routines.....

Callers 15

pmap_unmapdevFunction · 0.70
sf_buf_unmapFunction · 0.50
vfs_vmio_invalidateFunction · 0.50
vfs_vmio_truncateFunction · 0.50
biodoneFunction · 0.50
vm_hold_free_pagesFunction · 0.50
vunmapbufFunction · 0.50
cluster_callbackFunction · 0.50
aio_biocleanupFunction · 0.50
kcov_freeFunction · 0.50
physioFunction · 0.50
vm_thread_stack_createFunction · 0.50

Calls 2

pmap_pteFunction · 0.70
pmap_invalidate_rangeFunction · 0.70

Tested by

no test coverage detected