MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / _varea_uninstall_locked

Function _varea_uninstall_locked

components/mm/mm_aspace.c:561–574  ·  view source on GitHub ↗

* restore context modified by varea install */

Source from the content-addressed store, hash-verified

559 * restore context modified by varea install
560 */
561void _varea_uninstall_locked(rt_varea_t varea)
562{
563 rt_aspace_t aspace = varea->aspace;
564
565 if (varea->mem_obj && varea->mem_obj->on_varea_close)
566 varea->mem_obj->on_varea_close(varea);
567 else
568 {
569 rt_hw_mmu_unmap(aspace, varea->start, varea->size);
570 rt_hw_tlb_invalidate_range(aspace, varea->start, varea->size, ARCH_PAGE_SIZE);
571 }
572
573 _aspace_bst_remove(aspace, varea);
574}
575
576int _mm_aspace_map(rt_aspace_t aspace, rt_varea_t *pvarea, void **addr,
577 rt_size_t length, rt_size_t attr, mm_flag_t flags,

Callers 6

rt_aspace_detachFunction · 0.85
_mm_aspace_mapFunction · 0.85
_mm_aspace_map_phyFunction · 0.85
_aspace_unmapFunction · 0.85
_remove_overlapped_vareaFunction · 0.85
_release_sharedFunction · 0.85

Calls 3

_aspace_bst_removeFunction · 0.70
rt_hw_mmu_unmapFunction · 0.50

Tested by

no test coverage detected