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

Function _page_remove

components/mm/mm_page.c:526–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526static void _page_remove(rt_page_t *page_head, struct rt_page *p,
527 rt_uint32_t size_bits)
528{
529 if (p->pre)
530 {
531 p->pre->next = p->next;
532 }
533 else
534 {
535 *page_head = p->next;
536 }
537
538 if (p->next)
539 {
540 p->next->pre = p->pre;
541 }
542
543 RT_ASSERT(p->size_bits == size_bits);
544 _page_alloc(p);
545}
546
547static void _page_insert(rt_page_t *page_head, struct rt_page *p,
548 rt_uint32_t size_bits)

Callers 1

_pages_freeFunction · 0.85

Calls 1

_page_allocFunction · 0.85

Tested by

no test coverage detected