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

Function rt_page_ref_inc

components/mm/mm_page.c:792–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790}
791
792void rt_page_ref_inc(void *addr, rt_uint32_t size_bits)
793{
794 struct rt_page *p;
795 rt_base_t level;
796
797 p = rt_page_addr2page(addr);
798 level = rt_spin_lock_irqsave(&_pgmgr_lock);
799 _pages_ref_inc(p, size_bits);
800 rt_spin_unlock_irqrestore(&_pgmgr_lock, level);
801}
802
803static rt_page_t (*pages_alloc_handler)(pgls_agr_t page_list[],
804 rt_uint32_t size_bits, int affid);

Callers 6

gicv3_its_irq_alloc_msiFunction · 0.85
rt_varea_pgmgr_insertFunction · 0.85
_map_one_pageFunction · 0.85
_kernel_map_4KFunction · 0.85
_kernel_map_2MFunction · 0.85
_kenrel_map_4KFunction · 0.85

Calls 4

rt_page_addr2pageFunction · 0.85
_pages_ref_incFunction · 0.85
rt_spin_lock_irqsaveFunction · 0.50

Tested by

no test coverage detected