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

Function _pages_ref_get

components/mm/mm_page.c:574–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574static int _pages_ref_get(struct rt_page *p, rt_uint32_t size_bits)
575{
576 struct rt_page *page_head;
577 int idx;
578
579 /* find page group head */
580 idx = p - page_start;
581 idx = idx & ~((1UL << size_bits) - 1);
582
583 page_head = page_start + idx;
584 return page_head->ref_cnt;
585}
586
587static int _pages_free(pgls_agr_t page_list[], struct rt_page *p,
588 char *frame_va, rt_uint32_t size_bits)

Callers 1

rt_page_ref_getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected