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

Function _release_shared

components/mm/mm_anon.c:658–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658static int _release_shared(rt_varea_t varea, void *arg)
659{
660 rt_aspace_t src = varea->aspace;
661 rt_mem_obj_t mem_obj = varea->mem_obj;
662
663 if (mem_obj != _get_private_obj(src))
664 {
665 _varea_uninstall_locked(varea);
666 if (VAREA_NOT_STATIC(varea))
667 {
668 rt_free(varea);
669 }
670 }
671
672 return 0;
673}
674
675static rt_err_t _convert_readonly(rt_aspace_t aspace, long base_reference)
676{

Callers

nothing calls this directly

Calls 3

_get_private_objFunction · 0.85
_varea_uninstall_lockedFunction · 0.85
rt_freeFunction · 0.85

Tested by

no test coverage detected