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

Function rt_page_ref_get

components/mm/mm_page.c:779–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

777}
778
779int rt_page_ref_get(void *addr, rt_uint32_t size_bits)
780{
781 struct rt_page *p;
782 rt_base_t level;
783 int ref;
784
785 p = rt_page_addr2page(addr);
786 level = rt_spin_lock_irqsave(&_pgmgr_lock);
787 ref = _pages_ref_get(p, size_bits);
788 rt_spin_unlock_irqrestore(&_pgmgr_lock, level);
789 return ref;
790}
791
792void rt_page_ref_inc(void *addr, rt_uint32_t size_bits)
793{

Callers 3

its_map_releaseFunction · 0.85
_unmap_pteFunction · 0.85
_kenrel_unmap_4KFunction · 0.85

Calls 4

rt_page_addr2pageFunction · 0.85
_pages_ref_getFunction · 0.85
rt_spin_lock_irqsaveFunction · 0.50

Tested by

no test coverage detected