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

Function _pages_ref_inc

components/mm/mm_page.c:560–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560static void _pages_ref_inc(struct rt_page *p, rt_uint32_t size_bits)
561{
562 struct rt_page *page_head;
563 int idx;
564
565 /* find page group head */
566 idx = p - page_start;
567 idx = idx & ~((1UL << size_bits) - 1);
568
569 page_head = page_start + idx;
570 page_head = (void *)((char *)page_head + early_offset);
571 page_head->ref_cnt++;
572}
573
574static int _pages_ref_get(struct rt_page *p, rt_uint32_t size_bits)
575{

Callers 1

rt_page_ref_incFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected